I'm looking for any of these versions:JBuilder 3-9, JBuilder X, or JBuilder 2005. The reason for this is because my computer is old (256 MB, 800 Mhz cpu) but I still like to program. (Yes, I should upgrade my computer but greenbacks don't grow on trees.)
And to prove that I really do program, I have an open source project where you pl...
Hey!
I tried to start vlc player in Java, but somehow it did not word.
Any other Prog I tried worked.
Plz have a look at my code:
try {
Runtime.getRuntime().exec("K:\\...\\vlc.exe");
} catch (Exception ex) {
System.out.println(ex);
}
Where is the problem starting videoLAN Player?
...
In IntelliJ, when you open a bunch of source files, is there a way to rearrange the order of the file tabs? In Eclipse you can drag and drop but I don't see a way to do this in IntelliJ.
...
Can a Java.exe JVM restart itself somehow? If you have a Java program running in a DOS shell (NOT as a service), what is the cleanest, most efficient way for it to shut down, close the shell, and restart itself with a different Windows process id and re-open in a different shell with a reloaded classpath?
I expect it's not possible...
I am aware of a counter approach to do this. I was wondering if there is a nice and compact way to do this.
...
Hi all;
First I have a JSF application that make some sort of searches from database, but on the other hand I have been listening port for this purpose also, I start a thread that listens that port in my application bean. From the port I listen for incoming request of these searches and send responses from this port.
The situation is th...
I've been intermixing JSPs and Servlets in the web app I'm building and I'm starting to find that my more complex JSPs end up containing a lot of code, which flies in the face of all the MVC lessons that have been pounded into me. I know I can do this by just forwarding to the JSP, but this seems like a stupid hack.
What I'd like to do...
Right now, attachments get stored in the DB instead of on the filesystem. Is there a configuration option or a plugin that can be used to change XWiki to store and read attachments from disk?
I see that there are hooks in xwiki.cfg file for swapping out the Java class that implements attachment storage.
So far I've come across this us...
I have two projects in Netbeans that are closely linked. They are separate projects because one of the projects is a util package that could be used in the future for another project. Is there a way to configure Netbeans so that the Javadoc generated for the main project will include links to the objects defined in the util project inste...
On MacOS (at least on SnowLeopard), the java command unconditionally adds an extra jar to the classpath:
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/.compatibility/14compatibility.jar.
This jar contains a version of Apache Xerces+Xalan, unrenamed. This can cause chaotic results for applications that are trying expl...
I've got a string that has curly quotes in it. I'd like to replace those with HTML entities to make sure they don't confuse other downstream systems. For my first attempt, I just added matching for the characters I wanted to replace, entering them directly in my code:
public static String escapeXml(String s) {
StringBuilder sb = new...
Hi,
I'm looking for a Java library that helps me building an OAuth Consumer. I must be able to receive OAuth signed requests and determine whether they are valid or not (checking the signature, timestamp and nonce values).
Do you know if there's something out there that makes this task easier?
thanks a ton!
...
What are the best libraries/frameworks for doing 3D and/or Zoom interfaces in Java?
I'd like to be able to do some prototyping of creating new types of interfaces for navigating within data and representing object graphs/relationships.
Low and no cost options are better. Open Source is also a plus.
UPDATE:
The higher level the api the ...
Hi everyone,
I'm currently trying to work out how to get world coordinates from JOGL - at the moment it only returns x = 0.0, y= 0.0 and z = 0.0 no matter where I click. What am I doing wrong?
public double[] getMousePosition(int x, int y){
int viewport[] = new int[4];
double modelview[] = new double[16];
double projection[] = new...
I'm attempting to parse load a rather complicated XML schema into a Schema object in Java so I can do some validation on XML messages.
My code looks similar to this:
SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
Schema schema = factory.newSchema(new StreamSource(new File("schema/schema.xsd")));
...
(second question in a few hours)
Kay so I'm making a chess variant in java, I have my console program working how I want it but now I'm trying to convert it to a swing GUI while STILL keeping the console things intact. So up to now I have my array of squares with pieces in them for the console, and a 2-dimensional array of JPanels with ...
Hi,
I'm trying to solve problem 32 of project euler in Java but I'm not getting the correct answer. I'm getting the answer of the following program as 48146. Could anyone please tell me what's wrong I'm doing here and how can I solve that problem?
Here's the code through which I'm trying to solve that problem:
public class Euler32
{
...
I am trying to Implement a JFileChooser that allows a user to select files on a remote system via ftp.
Everything I've read says this can be accomplished by extending FileSystemView so that all the file system methods (getFiles, etc) are overridden and routed across ftp.
I haven't had any luck implementing this, as FileSystemView appea...
I am just curious on how people solve this. I often write the same type of code all the time. For instance:
new Thread() {
//...
//...
//...
//Change this line
//...
//...
}.start();
I keep changing the line where it says "Change this line" and then starting a thread. This change can be one line or a few lines. How w...
I use ant for creating .jar files in Eclipse. Works great.
I have a .jar file I am working on that expects the code to be in a .jar file (it looks for .properties files in the same directory as the .jar file) -- the standard Eclipse "Run" and "Debug" menus execute the main() method of a specified Java class... but they do it from the di...