You are currently browsing the tag archive for the ‘gui’ tag.
When reading the basic of Java Programming language, I become interest about making program using Java. Rather than CLI based Interface I prefer to use Java Window Interface (AWT and Swing), but when developing program there’s some question that came up from my mind. One of it is “How do I run java class as executable program?”
Then I’m trying to make little researh about the compile model of java itself. Then I realize, generally java can be packed into jar fomat. I want .exe , so find some freeware software to help me. There’s some but I think Java Launcher is the better one to convert java class into .exe format
Search Java Launcher, and install it. After run : just pick the main class file, then decide the ouput folder. Then select conversion option into .exe, click create to generate .exe file. Not only make executable format, Java Launcher also can modify the icon for the program. You can add manifest file for extra class/file if you want.
There’s 3 thing you should make sure before create .exe :
- Your java class code should using GUI based code, (AWT, SWING)
- Make sure your other dependency class/file also included
- To make it works. JDK, JRE etc should be installed in your computer.
If you do it correctly, it will work. 🙂
Idea for this blog