2

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.

4 Answers 4

9

Right-click on project.
Export as runnable jar.

Sign up to request clarification or add additional context in comments.

1 Comment

Don't forget to choose the right Main file (or StartUp or whatever you called it).
4

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.

Comments

0

You can File > Export > JAR file to export your project as a jar and put the java command to run the jar on a windows batch file. Alternatively you can File > Export > Runnable JAR file

Comments

0

You can either create an executable jar file (using eclipse, or a build tool like "ant" or "maven") or you can also create a "real" Windows-executable file (which you can also give to customers/friends).

I am using JSmooth a lot ( http://jsmooth.sourceforge.net/ ) - this builds a wrapper around your jar-files and can help the user with downloading and installing an appropriate java virtual machine version.

Probably the executable jar (see answer of Serplat) file is what you need :)

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.