How to make Java application standalone?

后端 未结 6 846
长发绾君心
长发绾君心 2021-02-06 11:26

I have to burn a Java application on a CD. This application have to run on every Windows PC wihtout any installation (also JRE shouldn\'t be installed) before.

6条回答
  •  执念已碎
    2021-02-06 12:00

    Just burn a jre onto the cd as well and start your application inside a batch script, which sets the CLASSPATH and the JAVA_HOME variables pointing to your jre.

提交回复
热议问题