Sunday, 15 September 2013

How to create a cmd file to run jars?

How to create a cmd file to run jars?

I have literally tried everything to try and make my jar files executable
by double clicking. But i have come to the conclusion that either I need
some major help because my java installation has a problem, or I need to
create a .cmd file to automatically run them properly. The code in the
file would be like this:
java -jar myfile.jar
What would i replace myfile.jar with so that windows puts in the file
extension of what i'm trying to open? Thanks.

No comments:

Post a Comment