Java (not to be confused with JavaScript) is an object-oriented language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM).

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

0
votes
2answers
7 views

Boolean column in HSQLDB with default value

I have having trouble getting HSQLDB to create a table with a boolean column. It seems every time I try to specify a default, I get the exception: org.hsqldb.HsqlException: unexpected token: DEFAULT ...
0
votes
0answers
4 views

Using HtmlUnit produces a long list of errors

What I am trying to do is go to a website, select items from two drop down lists, type something into a box, and then press a button. I then want to get the resulted text that will be in a box that ...
0
votes
0answers
9 views

Java BufferedReader putty ending stream with Putty

I'm connecting as telnet client through putty. Server has following section of code: while((inputLine = in.readLine()) != null){ } How make putty to end stream to get null with readLine()
0
votes
0answers
5 views

OpenGL: two spheres in single vertex buffer

(Question is at bottom)Im learning opengl(using lwjgl) and done some drawing of flat shape through sending buffers. Now I need to draw many spheres in single buffer. In my last question, I was advised ...
0
votes
0answers
3 views

Passing 2D Array argument with JACOB

I have a COM method I'm trying to invoke, where there's an argument of type 'object' which must be a 2D double safe array, a collection of lat/long points. How can I create a SafeArray in JACOB to ...
0
votes
1answer
7 views

Cannot read .so implementing JNI via .a and main application on Ubuntu x64, Netbeans IDE

Ok.. I have a problem of reading .so file via .a and my main application. my main console application includes .a static library file, and a function in .a static library file reads .so file using ...
0
votes
0answers
3 views

Re-write the same text into an existing PDF document by using PDFBox

It's a very important question and i am very interested to get any help of you. I used PDFBox to create a simple PDF document. That i'am trying to do, is to read the existing document and then ...
0
votes
0answers
7 views

longBitsToDouble, without rounding, is it possible

I have this piece of code, "text" is forced to example value public static String binStringToRealString(String text, int precision) { String result = ""; long longBits; Double ...
0
votes
1answer
9 views

How to implement environment-specific init parameters in my tomcat application

I'd like to be able to implement a configuration-less deployment for my java application (tomcat7, spring-mvc). For example, right now we are considering creating one context.xml file for each ...
0
votes
0answers
4 views

Eclipse AudioRecord with HTC Incredible (Audio Data Empty)

I'm using Eclipse to program Android applications in Java and have run into a bit of a problem. With the HTC One and AT&T Fusion phones the data arrays returned from the AudioRecord object have ...
2
votes
3answers
40 views

Compare object name (reference name) with a string

How to compare name of an object to a string in Java? For example: class_name obj = new class_name(); and I want to compare object name obj with a string. What is the correct way to do that?
-10
votes
0answers
24 views

write a program to read the various employee ids? [on hold]

Write a java program to read the various employee ids in a vector and need to get the employee details like employee name, department, salary from different vectors?
0
votes
0answers
10 views

Detect Language From RecognizerIntent

i write this code: Intent voiceSearchIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); voiceSearchIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, ...
0
votes
0answers
6 views

Using Scandinavian letters in libGDX-project compiled for iOS

I have made a libGDX game that's supposed to work on Android and iOS. The game itself works identical on both platforms, but for some reason the character encoding is off on iOS. I am creating a ...
1
vote
0answers
16 views

How to get float value in ResultSet of Hibernate Query?

I have the following query select sum(r.score)/count(r) from Rating as r group by r.item order by sum(r.score)/count(r) desc My problem is that hibernate rounds the result ...

1 2 3 4 5 30946
15 30 50 per page