Skip to content
⌘ NSIS Forum Archive

Execute java jar

5 posts

rajnish_ban#

Execute java jar

Hi,

I am looking for the information how I can run my java jar file from the Programs menus ...

an example will be very helpful...

best regards,

Raj
flizebogen#
Create a Shortcut pointing to an installed Java runtime. in the Bin directory lies a programm called javaw.exe

use it this way: javaw.exe -jar <path to .jar File>
rajnish_ban#
Thank you for the reply ... but I have to set the environment first i.e the classpath and path for java. Where and how I can set this ... in the mean I try to do as you said 🙂
zimsms#
It's best if you specify the classpath at runtime.

ie: javaw.exe -cp "Classpath" -jar <path to .jar File>

or use a batch file.....