Best Answer: How Do I Compile a Jar File in Linux?
Contents How Do I Compile a Jar File? Creating a Jar File in Command Prompt Start Command Prompt. Navigate to the Folder That Holds Your Class Files: C: >Cd...
Contents
How do I compile a jar file?
Creating a jar File in Command Prompt
- Start Command Prompt.
- Navigate to the folder that holds your class files: C:>cd mywork.
- Set path to include JDK’s bin. …
- Compile your class(es): C:mywork> javac *.java.
Must Read
How do I compile a jar file in Unix?
There are two ways to execute the jar file:
- At the DOS or UNIX command prompt, type java -jar myResult. jar . This should work; if it doesn’t, there are two main possibilities: …
- Double-click the jar file. This will work if your system has been configured to know about jar files. If not, see below.