---
title: "How can I convert my Java program to an .exe file?"  
description: "How can I convert my Java program to an .exe file?"  
author: "Anonymous User"  
published: 2015-07-29  
updated: 2015-07-29  
canonical: https://www.mindstick.com/forum/23385/how-can-i-convert-my-java-program-to-an-exe-file  
category: "java"  
tags: ["java"]  
reading_time: 2 minutes  

---

# How can I convert my Java program to an .exe file?

If I have a [Java](https://www.mindstick.com/articles/12214/web-development-company-in-india-laid-on-the-foundation-of-concrete-java-programming) source file (*.java) or a [class file](https://www.mindstick.com/forum/60/how-we-add-dll-with-other-class-file) (*.class), how can I [convert](https://www.mindstick.com/forum/2093/configurationmanager-appsettings-convert-n-to-n-why) it to a .exe file?\
Is there an [open source](https://www.mindstick.com/articles/337437/how-to-leverage-open-source-for-innovative-project-development) [program](https://www.mindstick.com/blog/12337/scaling-up-your-mentorship-program) that can do that?

## Replies

### Reply by Anonymous User

Some options:\

### [Executable Jar File](http://csdl.ics.hawaii.edu/~johnson/613f99/modules/04/jar-files.html)

### See also [Distributing your Application as an executable JAR file](http://www.cs.princeton.edu/introcs/85application/jar/jar.html) and the Oracle docs on how to create a jar file that can be executed with a double-click on Windows.

\

### 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.\
\

### JexePack

JexePack is a command line tool (great for automated scripting) that allows you to package your Java application ([class](https://www.mindstick.com/blog/165/generic-class-in-c-sharp) 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.\
\

### LaunchAnywhere

A LAX Executable is an executable file that is used to launch a Java application on any LaunchAnywhere-compatible platform. Currently, InstallAnywhere creates LaunchAnywheres on Windows 95/98/NT/2000/Me, Solaris, Linux, and Mac OS X. LaunchAnywhere enables end-users to double-click on an icon (Windows or Mac OS X) or type a single command (UNIX) to start a Java application.\
\
**Launch4j**\
Launch4j is a cross-platform tool for wrapping Java applications distributed as jars in lightweight Windows native executables. The executable can be configured to search for a certain JRE version or use a bundled one, and it's possible to set runtime options, like the initial/max heap size. The wrapper also provides better user experience through an application icon, a native pre-JRE splash screen, a custom process name, and a Java download page in case the appropriate JRE cannot be found.\


---

Original Source: https://www.mindstick.com/forum/23385/how-can-i-convert-my-java-program-to-an-exe-file

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
