Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Difference between java.exe and javaw.exe

611760Apr 3 2008 — edited Apr 3 2008
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)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 1 2008
Added on Apr 3 2008
1 comment
918 views