I'm having trouble launching my app. It seems to not like being launched with javaw.exe from the Windows Start -> run box. I really want to be able to launch my app from the right-click Windows menu by adding registry entries (I know how to do this) but it isn't working and is displaying the same behavior as trying to run from the Start -> run menu. I figure if I can get Start -> run to work, the right click will work too.
I've created a jar file with a manifest and when I try and run it (Start menu -> run) with;
java.exe -jar C:\fs\FS.jar
it works fine, but if I run it with
javaw.exe -jar C:\fs\FS.jar
I get a little dialog titled "Java Virtual Machine Launcher" with the message "Could not find the main class. Program will exit!".
If I try and run from the command prompt (rather than Start -> run menu) it works fine with both java.exe and javaw.exe.
My java version is;
C:\>java -version
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)