-1

I need to execute the program I've written in Java in another computer different from mine. Is there a way to make it run without having to set the system and enviroment variables and without having to compile it manually through the shell? It would be great if I could just click on a file and make it run. Thank you

4

1 回答 1

1

创建一个可运行的 jar。如果用户正确设置了 Java,则可以通过双击 jar 来运行它。

(当然前提是你不让它依赖于特定计算机上的路径或其他东西)。

于 2013-09-04T14:03:53.203 回答