Running a Java application on a machine that does not have a JVM

I created a .exe file of my software (which is a Java swing). But the .exe file only works on those computers on which the JVM is installed. I want to run it on computers on which the JVM is not installed. How to do it?

+5
source share
5 answers

You need a JVM to run Java. There is no getting around this.

Users who do not have an installed JRE should get it. Do not confuse this with the JDK. They do not need all the development tools, just the execution mechanism.

+11
source

In any case, you will have to send the JVM with your application anyway. So why not include the JRE in the installation package?

- , JRE , . , http://nsis.sourceforge.net/Java_Launcher_with_automatic_JRE_installation ( NSIS, ).

+5

, jar exe, Launch4j, , , JRE/JDK, , java.

+2

, Java (.. Windows).

0

, GCJ. , AWT/Swing, , .

- , , , , . Java , GCJ , , - .

It is perfectly acceptable to distribute the jar file and then direct your users to download the JDK if they have not been, and if you are not doing something very specialized, then I would recommend in this case.

0
source

All Articles