I'm trying to get rid of the annoying DOS prompt when I run a Swing application that I've written, but I'm having no luck at all, mostly thanks to my need to specify a custom classpath. I've tried two ways of doing this.
One: make a shortcut to javaw.exe and provide the necessary parameters
ex:
c:\jdk\binjavaw.exe -DJINTEGRA_NATIVE_MODE -cp .;my_class.jar;oracle.zip;another.jar;%CLASSPATH% com.myco.mypackage.MY_Class
This fails whenever I use %CLASSPATH%. If I fully specify the classpath (i.e. use no system properties) it works fine, or if I don't specify any classpath at all it also works fine (seems to use the system CLASSPATH), but unfortunately I need to ensure that it looks into the listed jars first, then goes to those in the system CLASSPATH.
Two: Create a .bat file that simply makes the above call itself.
Well, that works like a charm, except the DOS window from the batch file never closes! That part I can't figure out. If I run the above command in a DOS prompt, the application starts and the prompt returns so that I can run another command while the application is running. But, if I put that call in a batch file, the batch file never completes until I exit the application.
Any ideas? This is getting a little frustrating

Thanks,
-tim
[This message has been edited by Tim Stevens (edited August 01, 2001).]