Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Executable file from JAR

Tags:

java

What's a good program to turn a .jar into .exe? I've tried jSmooth, JEXECreator and launchJ to no avail.

like image 558
test Avatar asked May 14 '11 15:05

test


People also ask

Can you make an exe file from Java?

The Java Packager tool compiles, packages, and prepares Java and JavaFX applications for distribution. The javapackager command is the command-line version. The javapackager utility ships with the JDK. It can generate .exe files with the -native exe flag, among many other things.

Where is the Java executable file?

You need to find the Java executable file (java.exe file) on your computer hard drive. It is often located in the "Program Files\Java" or "Program Files (x86)\Java" folder, within a possible subfolder below the Java folder. Once you find the file, select it and click OK.


2 Answers

As per the comments:

my main class file does not have String (main[]) class... it shouldnb't because it's an applet

So your JAR does not represent a Java application at all? You need to convert your applet to a Java (Swing) application. Those EXE creators are for Java applications only.

like image 140
BalusC Avatar answered Oct 01 '22 14:10

BalusC


I prefer JEXECreator 1.9.3, it is very good and easy to use

like image 21
Eng.Fouad Avatar answered Oct 01 '22 15:10

Eng.Fouad