Generating an executable file from Eclipse

10,976

Solution 1

Right-click on project.
Export as runnable jar.

Solution 2

File -> Export -> Java -> Runnable JAR File

You'll have to choose the main class that you want it to run. This will allow you to double-click on the JAR, and have it run that main.

Share:
10,976

Related videos on Youtube

Gondim
Author by

Gondim

Updated on June 04, 2022

Comments

  • Gondim
    Gondim almost 2 years

    I've made a program to help me out with some stuff, but every time I need it, I open Eclipse and Run it.

    Is it possible to create an executable file so I won't need to open Eclipse every time? The commands I use is basically System.out.println() and Scanner to read what I type.