Monday, June 16, 2014

How to Convert Java to EXE in Linux



1. Create a folder in your Home directory called 'Java' and put the files you want to convert into the folder. Rename any files with a .java.txt extension to .java.

2. Open a Terminal command line and enter the following command, followed by 'Enter:'javac DiveLog.java

jar cvfm DiveLog.jar mymanifest DiveLog.class DiveLog\$1.class DiveLog\$2.class Welcome.classThis creates a batch file.

3. Double-click on the batch file and it creates a file called 'DiveLog.class' by compiling the application. You can now click on this file to execute the original Java file.

No comments:

Post a Comment