How To Make A Executable File From Your Java Code

Sulabh Shrestha
MPercept Academy
Published in
4 min readMar 4, 2018

--

As a computer science student, we all had a java programming language course on our one semester and we learnt it from bottom to top but not all. Chances are that we coded java for the semester end project and never really looked backed at it like making a executable file of it. As it is also not on the course syllabus people don’t tend to give it a try. So I’m here to tell my experience in making a windows executable file with a straightforward simple guide.

Contents:

  1. Making a jar executable file
  2. Making a executable file

Before you go through this guide, you must already have initialized JDK and JRE path and installed Eclipse with a sample project with it.

Making a jar executable file

A JAR (Java ARchive) is a package file format typically used to aggregate many Java class files and associated metadata and resources (text, images, etc.) into one file for distribution.

  1. Open the eclipse with the java project.

2. Right click on the project itself and click export.

--

--