Running java without installing jre?

后端 未结 8 1535
小蘑菇
小蘑菇 2020-11-27 16:52

As asked and answered here, python has a useful way of deployment without installers. Can Java do the same thing?

  • Is there any way to run Java\'s jar file wit
8条回答
  •  感情败类
    2020-11-27 17:47

    You can use Launch4j for this. Well documented and easy to use. While the resulting program still needs a JRE to run, you don't have to install the JRE on the target system. You can just copy it with your application and tell Launch4j were to find it or just wrap it up with everything else.

提交回复
热议问题