Java (not to be confused with JavaScript) is a class-based, object-oriented, strongly typed, reflective language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM) enabling a "write once, run anywhere" (WORA) methodology.

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

0
votes
0answers
3 views

How Can I Set a subclass field in Protocol Buffer, from Java Code?

I Have an Animal A Cat and Dog messages, but i don't know how to set cat's declawed, or dog's bones_buried field, if I create an object. I want to create a Cat, and create an animal object from it. ...
0
votes
0answers
4 views

how to process a structure member inside a structure using JNA?

I am working on JNA to return a nested structure pointer on a native function call. The nested structure has members of type unsigned char, struct. I was able to read the primitive types but struck up ...
0
votes
0answers
8 views

Non-Sense Exception in jasper reports

I am trying to get a sample report generated by jasperreports but it is throwing some exception that i can not understand. Please help I have a bean: class DataBean { public String country; public ...
0
votes
0answers
5 views

Webdriver can't control popups

After sending click with findElement, I Cant go on to the next action of handling the popup until popup closed (manually), since current window is not in control, therefore webdriver waits forever. ...
0
votes
0answers
6 views

Insert piece of .doc .docx file to another by using the Apache POI HWPF or XWPF

Please somebody help me to integrate some MS Word document to another. I can open, edit and save, but only with one MS Word document. My simple code only creates, edits and saves .docx: import ...
0
votes
2answers
16 views

FileDescriptor of Directory in Java

is there a way to open a directory stream in Java like in C? I need a FileDescriptor of an opened directory. Well, actually just the number of the fd. Thank you in advance!
0
votes
0answers
25 views

Online tool for java selection, insert, shell and binary sort? [on hold]

Does anyone know of tool that will show you the process (including swaps, comparisons, etc) that is on-line for free? I know of ones that are visual and show you the process but I am looking for one ...
0
votes
2answers
27 views

NoSuchElement exception when using Scanner

I'm trying to get input from the console a second time within the program using Scanners but when calling a second Scanner in another method it’s coming up with NoSuchElement exception. If I remove ...
0
votes
0answers
6 views

Transaction Issue with Multiple Tests in TestsNG

I am having two test cases, where first test case saves the record and second updates the record which is added in first test case. I am using JPA/Hibernate as ORM. My TestNG test class is like ...
0
votes
1answer
22 views

Java Observer / Observable equivalent in C# ?

I'm toying a bit with IObservable and IObserver in C# after using it's java equivalent. However I'm not entirely sure how to use it correctly. I've googled this , but the results are either too ...
1
vote
1answer
35 views

Should I have static init() called before any instance is created

I have a class which initializes connection to one of the servers that we are dealing with, then subscribes to various events on server and then performs various transactions on the same server once ...
0
votes
3answers
23 views

How to make a Hirarchical Json Structure with java program

I am working on a generation JSON. The desired result is: { "nodes": [ { "name": "Jeet123", "type": 1, "slug": "", "entity": "company" ...
0
votes
0answers
4 views

Exception while trying to load openNLP POS models

I have been trying to use POS Models for POS tagging, but while loading the Models I get the following exception, and this happens for both maxent as well as perceptron models: java.io.EOFException: ...
0
votes
1answer
7 views

Custom Interceptors per Controller

I'm moving an existing Spring web mvc Controller (called LoginController) to using annotations, I had <bean id="loginHandlerMapping" ...
0
votes
1answer
13 views

Detect lowest Java version supported

I'm working on a little Java app and I'm currently putting the installer together. This checks for perquisites, such as Java being installed, and prompts the user to download anything that's required. ...

15 30 50 per page