How to compile .jar with jre?

I have a friend without java. I want to pack an .jar executable file with SE java platform in an exe file so that it can run it without loading the entire Java executable. Can someone point out some software that does this?

+4
source share
3 answers

I have a friend without java.

And you call them friend ?;)

  • Use deployJava.js to verify that the user has the minimum Java required to run the application.
  • Install and run the application. using Java Web Start .
  • Give the user a link to the launch web page.

This will work on Windows .. and OS X .. & * Knicks.

+1
source

Try using Launch4J at http://launch4j.sourceforge.net/

Here are the highlights:

Launch4j wraps banks in Windows executables and allows you to run them like a regular Windows program. You can wrap applications for Windows, Linux, Mac OS X, and Solaris!

Also creates launchers for jars and class files without packaging.

0
source

I also had a good experience with Launch4j. Also check out JSmooth: (http://jsmooth.sourceforge.net/index.php), which claims to be able to download and install the JVM if it is not available.

0
source

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


All Articles