Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

starting a jar file

Status
Not open for further replies.

Jimguld

Programmer
Mar 4, 2003
26
DK
Hi can anybody please tell me how I run a Jar file.

I have made a java application and created a JAR file from it. Now I would like to make an incon and run the application when I click on teh icon.

What should I write as the target...

I have tried this...

java - jar 'c:\myjar.jar' ??

and hos do I set the class path here..??

Cheers
 
Code:
java -jar myfile.jar

>> and hos do I set the class path here..??

for "java" command line switch help

Code:
java -?

-pete


 
did not understand that last part pete


 
what he says is, if you want to know the various options the "java" command takes, simple type

java -?

on a command line...

BTW, just typing &quot;java <return> &quot; works the same!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top