Tagged Questions
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).
0
votes
0answers
7 views
What maven repository should I use to download Oracle (Sun) Java JDK?
I try to download Oracle (Sun) Java JDK via maven without success:
<dependency>
<groupId>com.sun</groupId>
<artifactId>jdk</artifactId>
...
-8
votes
0answers
21 views
how to open file using java code [on hold]
I am trying to open a PDFs file in software in java.but i didn't got.I am creating a software e-book store.For that i have to open PDFs files.
how can i create java code.Please help.
0
votes
0answers
6 views
how submit grails form with submit button ouside form tag
Is it possible to submit a grails form () with submit button () outside that form. I know we can do the same in javascript for simple HTML page. I m relatively new to grails (gsp pages) having hard ...
0
votes
0answers
11 views
Hibernate Lazying Loading and initialization
I'm attempting to lazy initialize my one to many relationship using Spring's Hibernate Template.
I have read the following guide.
...
0
votes
1answer
11 views
ClassCastException when accessing SOAP based web service from Android
I'm trying to access the web service defined here WSDL link from Android activity And my target method is getHospitalList. The expected output is json formatted string like below string (I have shown ...
-1
votes
0answers
25 views
Find and search for a double in an array and return its indices? Is this an array element swap method?)
I need a 30 rep on stack overflow by the end of next week. To recieve 15% of my grade. I don't think that's going to happen obviously.
This is my first question. These 2 create method questions, ...
0
votes
0answers
18 views
Dialog not pulling info from EditText box
Hello I am trying to write a small app and when the day is Sunday on the system it is supposed to pull up a dialog box which it is doing just fine. However when I put info in the boxes in the dialog ...
0
votes
2answers
20 views
How to attach Pdf file to mail using java
I am try ti attach a ready pdf file to mail using java,so for that I have try below
String filename = "file.pdf";
ByteArrayOutputStream bos = new ByteArrayOutputStream();
??.write(bos);
...
-1
votes
0answers
8 views
Soap webservice call from Java application through main method
I am new to soap webservice as i am implementing simple Learning example.
I created one authenticating webservice and it is working fine(Checked through soapui).
But i am not getting how to make a ...
-2
votes
0answers
12 views
JNLP, Webstart, and Maven
I created a simple Hello World Swing application that compiles and runs just fine in Eclipse. I'm now trying to transfer this application over to a Maven package structure and run it as a Java ...
0
votes
0answers
17 views
Socket Server will not receive properly
I am trying to make a socket server, I am connecting through putty to this server. Whenever I type "hi" it says "no" rather than "hi" which I want it to do. I found this on A java website. If you ...
0
votes
0answers
9 views
How to make Haxe communicate with Java(Processing 2) / Arduino?
I'm currently using Haxe with Flash target for a project.
What I want to do is to send a serial signal to my Arduino board, I couldn't find a way using only Haxe so I'm using Processing ...
0
votes
1answer
10 views
Nanohttpd in android do not serve files
i am developing a android application which uses nanohttpd to create a webserver my code do not give me any error but the server is not running because when i go to xx.xxx.xxx.xxx:8765/index.htm then ...
-3
votes
5answers
42 views
equals() implementation for user defined class
I want to know why equals() returns False for a user-defined class and not for the String class. (Note that the equals() method is not overridden.)
For example:
public class EqualsTest {
public ...
-1
votes
2answers
37 views
Regular expression to find out for special characters in Java
My requirement is 'Following characters are not allowed for value name:
[ $ & + , / : ; =? @ " < > # % { } | \ ~ ^ [ ] ` ] '
I have used something like this,
Pattern pattern = ...