Java 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
0answers
3 views

How to create a SOAP message from a saved xml file

I have saved a Soap xml file (MySoap.xml) in the following format <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> ...
-1
votes
0answers
24 views

Running two classes in Java synchronously

I have been struggling with this problem for two hours but still couldn't found a solution. Actually I am new to Java, and not at all familiar to Java's synchronized. I don't even know if I need to ...
0
votes
2answers
32 views

Inteface Method Usage(Java)?

Can Someone Explain how the methods of interface used in classes? Note: My Doubt is "Methods are already defined in Class then why we should implement it ? " For Example : interface printable{ void ...
0
votes
3answers
28 views

surround words with brackets when a comma is reached in a String

I am 90% there with a regular expression but i would really appreciate some help in finalizing it. I start with the following String. String toiletDer= "TOILET, BOG, PUBLIC CONVENIENCE"; ...
0
votes
1answer
13 views

Which field or property is causing the exception to occur in JPA/Hibernate?

I use JPA/Hibernate for persisting data, and for example, i have a class named 'book' that 'ISBN' field is uniqe and 'Page' is int. when user set this fields by mistake data (duplicate number for ...
0
votes
0answers
4 views

Embedded Jetty and Sitemesh

I am building an application and I would like to know how to set sitemesh and jetty in a embedded mode. The embedded mode I am using does not require any web.xml file.
0
votes
0answers
5 views

resteasy content-length already set

I'm trying to call a RESTful service via a proxy interface but I'm getting an exception which I don't understand. I'm using Java6, HttpClient 4.2, RestEasy and the service is hosted on a JBoss 4.2GA ...
0
votes
2answers
46 views

Using C# to send values to Java application

I have developed a Java application. This application basicly requires a string named "input" to process. After that string is given to this program, returns "yes" or "no" depends on string. I also ...
0
votes
0answers
7 views

How to save GoogleCredential for an other use Google Drive

im a beginner and want to test the Drive API from google this is the sample java code, but i have to re enter the generated code every time lunch the application. is there any solution for this ...
0
votes
3answers
25 views

How can I loop through Exception getCause() to find root cause

I am trying to call saveOrUpdate() in hibernate to save data. Since columns have unique index, so its throws ConstraintViolationException when I look through via Eclipse debugger. Since root cause ...
0
votes
5answers
37 views

FileReader is not reading 1stCharacter

Hello friends, I am making a program in which a txt file is being read and shown for output. I am using FileReader and the editor of eclipse juno for this. But while I am doing ...
5
votes
1answer
51 views

How to declare a variable which can contain only enum classes?

I tried this: public static enum Types { A, B, C } Class<Enum> e = Types.class; But I get an "incompatible types" error: found : java.lang.Class<id.Types> required: ...
0
votes
0answers
7 views

Is there a way to handle custom java exception in OSB?

For example, i created a exception that extends RuntimeException. My exception has a new field called "code". I want to handle this exception in Oracle Service Bus process and retrieve this code to ...
0
votes
1answer
9 views

Spring form validation optimization (short-circuiting)

I'm trying to optimize a Spring form validation by skipping as many database hits as possible. Here's an example validator that I have: import org.springframework.validation.Errors; import ...
0
votes
0answers
6 views

Path to access Local Printer in same way as of network printer

We can access the network printer using the path as below: \\ComputerName\PrinterSharedName Need the way to access local printer in the same way. Is it possible. Please share your opinion and ...

1 2 3 4 5 29886
15 30 50 per page