I have a java app that I wrote. I am able to execute it using Ant and with “java -jar” from the command line. I want to be able to launch the file using “javaw.exe” (my app uses Swing). For some reason it doesn’t seem to do anything (javaw starts for a second and then quits with no error that I can see). I tried running the same file on my Win XP computer using javaw and it executes fine. The other computer I am using it on is a Win 7 laptop.
Share
Building on purtip31’s comment …
I expect that the problem is that some exception or error is occuring when you launch using
javaw, but you can’t see any diagnostics because they are going nowhere.In the short term, redirect standard output to a file and look at what is being written.
In the long term, replace your “System.out” and “System.err” diagnostics with proper logging via a logging framework such as log4j, java.util.logging, etc.