Java is an object-oriented language and runtime environment (JRE). Java programs are platform independent, because they are compiled to bytecode and their execution is handled by a Virtual Machine called the Java VM or JVM.

learn more… | top users | synonyms (5) | java jobs

0
votes
0answers
4 views

Issue in DB2 or Java - Handling CLOB data type

I need to pull comma-separated values from DB2 exactly as in this question, so after quick googling I found the solution by using following functions in my select clause: SUBSTR(XMLCAST(XMLGROUP(', ' ...
0
votes
0answers
11 views

Get Assembly Version in Java

Is there any way for me to get the version of an assembly or application in Java? For example, I have a .NET .dll file located in Program Files. I normally call `loadLibrary' on this .dll so I can ...
0
votes
2answers
36 views

Out of memory error in java arrays

I am using the following piece of code in one of my methods in java: int [] byte_song = new int[8414449]; int [] int_song = new int[8414449 - 45]; if i just write int [] ...
0
votes
0answers
3 views

NAS parallel benchmark in Java input size too big

I am running NAS NPB3.0 JAVA implementation. The program I am trying to run is BT.java with the input 200 number of time steps 0.0008d0 dt for class A = 0.0008d0. class B = 0.0003d0 class C = ...
1
vote
0answers
12 views

How can I convert WatchService into a Runnable?

I have a watch service that monitors a directory for ENTRY_DELETE,ENTRY_CREATE and ENTRY_MODIFY events and performs logic based upon the event. I need the service to watch the directory for all ...
0
votes
0answers
4 views

Simple undirected unlabelled graph in JGraphT doesn't work?

I want to make a simple undirected unlabelled (edges aren't labelled) graph A<->B in JGraphT 0.8.3: import org.jgrapht.graph.DefaultEdge; import org.jgrapht.graph.SimpleGraph; class A { ...
0
votes
0answers
10 views

Hibernate - updating object with many to many relationship

I have class Person and class Role. There is many to many bidirectional relationship between Person and Role. If I create new Person, load existing role from db and set the role to the Person, it ...
0
votes
0answers
10 views

different json views for the same entity

i am wondering How would you enable different json views of the same entity (example, public data and authenticated only, list views, full details, etc)? in case if there are Jboss AS 7 + RestEasy ...
0
votes
0answers
8 views

apache ant: responding to prompt for password

I am using ant to deploy an app to a Glassfish application server which requires a admin user/password for login. Could you explain how to provide password from ant build.xml itself without manual ...
0
votes
0answers
2 views

Convert OWL axiom to Manchester syntax

Is there a way to Convert an OWL axiom to Manchester Syntax? I know that the OWL-API will allow you to parse a sentence in Manchester Syntax into OWL functional syntax, but I need to do exactly the ...
0
votes
0answers
10 views

How to get distinct values out of a collection with where condition in mongodb?

How to get distinct values out of a collection with where condition? For Example, I have Worker class, which contains status and workerId along with other fields, Here i want to retrieve distinct ...
1
vote
1answer
32 views

ArrayList not working as expected in do..while loop

I have the following loop which creates a String which fits exactly in a screen, it creates a page so to speak. for (int i = 0; i < totalLine; i++) { temp = enterLine(mTextView, ...
0
votes
0answers
14 views

AES encrypt C# decrypt Java?

I'm trying to decrypt C# encrypted data in Java without success. I'm using 128 bit key&block size with PKCS7 padding. Here's C# code: public byte[] Encrypt(byte[] data, byte[] key) { ...
0
votes
0answers
9 views

Java PDFBox, extract data from a column of a table

I would like to find out how to extract from this pdf(ex. image) http://postimg.org/image/ypebht5dx/ For example, I want to extract only the values ​​in the column "TENSIONE[V]" and if it encounters ...
0
votes
1answer
6 views

why do we need SocketOptions.SO_BROADCAST to enable broadcast

If we want to broadcast information from a socket, we need to enable SocketOptions.SO_BROADCAST. However, I dont understand how's the mechanism behind that. Since if we set the packet with an ...

1 2 3 4 5 27167
15 30 50 per page