I am newbie in Java. I have a little question. Suppose, I have written a code in Java like this:-
import java.awt.*;
import java.applet.*;
public class J02_02 extends Applet
{
public void paint (Graphics g)
{
g.drawString("Make a Software From this Java Code",10,100);
}
}
I have compiled it using javac
command to a J02_02.class and it's running well in Java Applet . But, I want to make a freedom desktop application from this code. Think, I want to make a desktop application like any other software we use IE: Firefox, Notepad, KMPlayer. I mean, I want to run this application to a computer where java isn't installed. I want to make this .class file to an .exe software. The .exe software should run on any platform like windows/linux without installing anything else like Java/jdk.
How can I do it?
Ahead Of Time (AOT) compiler is the answer...
A common on AOT compiler would be Excelsior .
An AOT compiler is clearly an overkill in your situation.
Check out the other options in my article Convert Java to EXE: Why, When, When Not and How .
Just in case, Excelsior JET 9 supports Java 7: http://www.excelsiorjet.com
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.