How to Convert Java Program to exe File

Today we will see how to convert your java program/application to executable file. Either you can make jar as executable or use some free tools suggested below.

Java Program Exe File

  1. Create Executable Jar File

Step 1 : Create A jar file and specify where the “main” Class is in the jar file.

Compile your classes. To make a jar, you also need to create a Manifest File (MANIFEST.MF). For example,

Step 2: Keep all the compiled output class files (Class1,Class2) and the manifest file in the same folder. In the command prompt, go to the folder where your files placed, and create the jar using jar command. For example (if you name your manifest file as manifestfilename.mf)

Using Eclipse

Eclipse – > Select Runnable Jar Option – > Choose any one of the option in the library handling section.

2. Launch4j

Cross-platform Java executable wrapper for creating lightweight Windows native EXEs. Provides advanced JRE search, application startup configuration and better user experience.

  3.  JSmooth

JSmooth is a Java Executable Wrapper. It creates native Windows launchers (standard .exe) for your java applications. It makes java deployment much smoother and user-friendly, as it is able to find any installed Java VM by itself.

4.   JexePack

JexePack is a command line tool (great for automated scripting) that allows you to package your Java application (class files), optionally along with its resources (like GIF/JPG/TXT/etc), into a single compressed 32-bit Windows EXE, which runs using Sun’s Java Runtime Environment. Both console and windowed applications are supported.

I hope above tools will be really useful when you want to convert your java application to executable file.

About mohan

This is Mohan Jayapalan author of TechPages Blog.I am a part time blogger and Currently working for private Software Concern.

© Copyright 2010-2016 www.techpages.org · All Rights Reserved · Powered by WordPress ·