July 26th, 2013, 09:42 AM
How to create a JAR file?
Please give me a specific answer.
July 26th, 2013, 05:47 PM
Use the jar command that comes with the JDK.
Here is a Windows batch file I use to create a jar file:
and the ExtractBoards.mnf file:
Rem Create the ExtractBoards.jar file:
D:\Java\jdk22.214.171.124\bin\jar -cmf ExtractBoards.mnf %JarName% *.class
Echo ----- Created %JarName% -----
%DEV_DRIVE% is an environment variable with the address of a disk drive. For example: D:
July 27th, 2013, 10:11 AM
Java said that the file is automatically compiled, how to locate the jar file? can I change it to an exe file? How?
July 27th, 2013, 10:18 AM
What version of Java are you using? I have never seen it print out a message like that.
The java command does not create jar files. jar files are created by the jar command.
There are third party programs that will create exe files from jar files. I have never used them. I always execute my jar files using the java command with the -jar option.
July 27th, 2013, 10:37 AM
Can you give me any examples?
July 27th, 2013, 10:40 AM
Post #2 has the contents of a windows batch file that uses the jar command.
July 27th, 2013, 10:58 AM
I mean the third party software that can convert java files to exe files.
Originally Posted by NormR
July 27th, 2013, 11:13 AM
I don't know any. I never have done it.