Click here to Skip to main content
15,912,665 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i wote a simple program with java and now i want to create a .jar file of it in windows,how can i do that?
somewhere wrote use: jar cf example.jar [inputfile]
but cmd doesnt know jar
i saw other questions like this,but i didnt understand it well
THANKS
Posted

1 solution

but cmd doesnt know jar

You need to set your PATH variable such that it includes the location of your Java executables: something like:
PATH=C:\Program Files\Java\jdk1.6.0_23\bin;%PATH%
 
Share this answer
 
Comments
arashmobileboy 23-May-11 1:14am    
where should i do this?thanks
arashmobileboy 23-May-11 2:29am    
got it,thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900