General case: first table represents one-side, second table represents many-side. Third table serves as a link between the two.
My case: first and second tables are the same. Third table serves as a link between all pairs of tables which have one-to-many relationship. This third table has additional field (String) which contains inform...
In Eclipse and a class is being loaded that should not be possible. In debug mode, I can pause it and see a call to class a.b.c BUT a.b.c class should exist anywhere since it has been renamed. My assumption is that there is an old jar file being called...but I cannot find it. So how do I find the jar file that class a.b.c is in while...
I am attempting to add an "export to CSV" feature to a webapp that displays data from a MySQL database. I have a written a "queryExecuter" class to execute queries from my servlet. I have used this to successfully execute insert queries so I know the connection works etc however queries with the "into outfile" statement are simply not ...
Hi,
Is it possible to access a file (read/write/delete/move...) using different credentials then the one the logged in user?
...
Is it possible to use bitmap (.fon) fonts in Netbeans? I have a font I particularly like (Raize font) and I don't see it anywhere on the list when I try to set it as the editor font.
I can use it in other editors (Notepad++, pspad, visual c++ express etc). I can't use it in jedit either. Is this issue java related?
...
hi,
i am having the script of tables in normal txt files also i have scripts for procedures and functions. Now, i want to just read that file from java and i want op fire that string (script) on DB.. is it possible..
i have written statements for all DML queries, but here i want to use DDL queries from Java.. can any one help me..
...
I have tomcat 5.5 installed, running and verifiable at http://localhost:8080/. The Tomcat menu option appears in the Eclipse menu bar and I can start and stop Tomcat from there. In Eclipse, it does not show as a Server Runtime Environment in Window - Preferences - Server - Runtime Environments, nor does it appear in the list of environme...
As succinctly described here, overriding private methods in Java is invalid because a parent class's private methods are "automatically final, and hidden from the derived class". My question is largely academic.
How is it not a violation of encapsulation to not allow a parent's private method to be "overridden" (ie, implemented indepen...
What does "inline thread" mean?
I got this question during my latest interview. Anybody used this?
...
I need a data structure to store users which should be retrieved by id.
I noticed there are several classes that implement the Map interface. Which one should be my default choice? They all seem quite equivalent to me.
...
I have a test that exercises a custom Swing component using java.awt.Robot. I'd like to run the test in our build server, but the build servers run on locked windows machines, and Robot.keyPress(char) doesn't work with the screen locked. The keystrokes I'm sending are sometimes things like down arrow and backspace, so sending them dire...
Using CXF to create contract-last web services seems like an efficient and effective way to rapidly create either SOAP or REST based web services. However, I'm unclear/unsure of the following and I'd appreciate insight/feedback:
Are there any significant pitfalls of contract-last that I should be aware of?
Are there any significant iss...
I am using using os.system call from python to run jar file.
The jar file requires large heap space and thus i am allocating 4 Gb heap space using Xmx.
When i execute the command
"java -Xms4096m -Xmx4096m -jar camXnet.jar net.txt"
from command line it executes properly, however when i call it from a python program via os.system, it wor...
Hi,
I was reading about java web start from wiki. Can someone please tell me
What is it used for?
A practical application of it; to make its use clearer.
Do other languages like C++ / C# have
anything similar?
Thanks,
Roger
...
Please correct me if I am wrong.
When running java [-options] -jar jarfile with no explicit class name, if a single class exists within the jar that contains a public static void main(String[] args) method, that method will be invoked automatically. Right?
What happens if I have several classes that contain an eligible main method?
...
When looking at job openings on-line, I noticed that some openings required knowledge of "core Java". What is core java and how is different from java?
...
Hi,
I am currently reading about Java Server Faces. I wanted to do my first little expriment with it. I out the API and implementation JARs into the tomcat/lib folder. I created a new "Dynamic Web Project" inside Eclipse. I created a new HTML file with the following content:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transiti...
Hi,
I need to implement a Java REST Web Service (we use Jersey framework) which can basically either
a. block waiting for some event (or poll for the event), before returning the response
b. provide some kind of aysnc behaviour to notify the client when the request has been processed.
I was thinking of returning a transationID, and ha...
Do you know any strictly equivalent implementation of the PHP similar_text function in Java?
...
Hi,
I read the following:
J2ME applications, unlike normal Java applications are preverified.
What exactly does the preverification of J2ME jar file mean? Is it something like checksum?
Thanks,
Roger
...