jar executable

R

rjl

I created a jar which is executable.Is it possible to set the path to
java runtime in the jar without setting path by useing a batch file. In
other words, I know the system has JRE and I know the location, but JRe
is not set in Windows path. I would like to set this path before the
jar is run from a command in the jar file.
Any suggestions?
lion444
 
V

Viator

Well if you are only concerned with WINDOWS then you can associate .jar
extension with java or javaw. But there is no way to associate/set the
jre path from JAR file it self. This is because of the way
windows/command prompt work. Alternatively look on the internet for
some of the Java application launchers.
Amit :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top