Tagged Questions
Java is an object-oriented language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM).
0
votes
1answer
8 views
Send ZIP file to server in Base64 via POST
I'm trying to send a zip containing multiple files from the client side to the server using an ajax request.
Javascript code:
var fileUp = document.getElementById("wsFile");
...
0
votes
0answers
9 views
ToggleButton state is erased when you turn the screen (Android)
I want to make a table binary which can change the bits and then to check if these are correct.
The first problem is that when you rotate the screen bits are reset and no how to correct this.
I also ...
-1
votes
0answers
8 views
Insert data from jsp form into database
I would like to insert data using either bean session or instance object
I have java class addfield.java that has he following code:
sql.RunUpdate("REPLACE INTO " + myTable+ " set ...
6
votes
0answers
31 views
static inner class and static member of a class shares SAME NAME?
How can the static inner class M and static member M [of class C] share the same name?
The following code generates "White" as output:
public class Amazed{
public static void main(String[] ...
0
votes
0answers
6 views
invokeAll() vs Guava ListenableFuture+addCallback()
I am wondering what will be the advantage of using ListenableFuture+addCallback() instead of invokeAll(), in case when I am only interested in getting result of all tasks at once.
Does invokeAll() ...
0
votes
0answers
7 views
request.getSession(true) ALWAYS returns a new session when client = android
I'm writing a servlet that handles requests from android clients. Each time I'm performing a HttpGet the servlet assigns a sessionID based on the result of HttpSession session = ...
2
votes
5answers
53 views
(Beginner Java) class, interface, or enum expected
Forgive me for posting a question very similar to one that I posted last night. I've simplified the problem in order to ask something more specific:
I'm getting a (class, interface, or enum ...
0
votes
0answers
6 views
Docsplit, JODConverter on CentOS: JRE not found
I have a CentOS 5.8 server running several applications.
I'd like to convert Office Documents into PDFs/images using Docsplit (based on JODConverter). The problem is I get this error:
javaldx: Could ...
0
votes
0answers
11 views
Unable to get print out using Java Silent print program in solaris OS?
I have written the below code in java for printing a simple pdf file,
public class Test {
public static void main(String[] args) throws PrinterException, IOException {
PrinterJob pj= ...
0
votes
1answer
16 views
Switching between Google Maps Android API v2 DEBUG and RELEASE API Key
Just finished coding an Android app and am preparing to release it to the Play Store. During development, I obtained a Google Maps API Key using my debug.keystore, and placed this key in my Manifest, ...
1
vote
0answers
35 views
POST request becomes GET
I am developing an Android and a server application in Java.
The server application runs on Jetty. The Android application is emulated on the same computer.
The Android application sends a POST ...
0
votes
0answers
5 views
(OpenJPA) How to query an Entity using JPA Criteria canonical metamodel on @EmbeddedId PK attributes?
Suppose I have an Entity and its EntityPK. I want to query all entities by pk.attribute1 AND pk.attribute2 using JPA Criteria using the generated canonical metamodel classes. EntityPK is defined as an ...
3
votes
0answers
24 views
How to chain exceptions in javascript (ie add cause like in java)
Is there a standard / best practice way to add a cause of an exception in javascript. In java you might do this:
Throwable t = new Exception("whatever");
t.addCause(previouslyCaughtException);
throw ...
0
votes
1answer
18 views
new JInternalFrame not getting added to already existing JDesktopPane
I have two JTables in a JScrollPane (table1 and Table2) when I select any row in table1 some information related to that row is displayed in table 2. My issue is if I select one row and then select ...
0
votes
1answer
10 views
Export Java applet to .jar
My problem is :
When I tried to export my applet, I couldn't find the 'main class'. When I double click on the exported jar file, nothing appears, but when I compile my code it works fine!
The code ...