Alex Rivera | Logout

Compiling a java program into an executable

Asked 2010-01-06T08:21:58.877
133

Possible Duplicate:
How do I create an .exe for a Java program?

I've just made a simple program with Eclipse and I want to compile it into an executable, but simply can't seem to find out how to do it.

Edit
Report

1 Answer

0

The thing you can do is create a .bat that will execute the .jar file created, checking if there is a JRE present.

From Mitch useful link (source)

java -classpath myprogram.jar de.vogella.eclipse.ide.first.MyFirstClass

This can be used into your batch...

answered 2010-01-06T08:24:46.493

Your Answer