JRE union with Java application

I created exe with the launch4j Ant script file and build.xml. I want to bind a JRE in my application and pass it to clients. How to do it?

Thank you Rajani

+3
source share
2 answers

Well, just combine everything in $JAVA_HOME/jreinto your distribution (presumably the Zip/ file TAR), and then refer to your scripts (i.e. use the executable javaunder $JRE_HOME/binto run the java program).

Remember that if you do this, you will have to provide different distributions for different target platforms (Windows, OSX, Linux, etc.) and architectures (or one bloated uber distribution, of course, but no one will thank you for that!).

+4

... , .

, JRE - . Windows JRE: x86, x86-64 Itanium. Sun 64- , .

64- Java Windows java.sun.com, java.com.

+2

Source: https://habr.com/ru/post/1716486/


All Articles