Compiling a java program into an executable [dupli

2018-12-31 14:47发布

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. Please help.

7条回答
荒废的爱情
2楼-- · 2018-12-31 15:31

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

查看更多
登录 后发表回答