How to make a Java application standalone?

I need to burn a Java application to a CD. This application should run on all Windows PCs without any installation (also the JRE should not be installed).

+6
java windows software-distribution deployment
source share
6 answers

I think you could copy the JRE from your program folder to a CD. Then add a script package to use your local JRE to run your application. That should be enough, but I donโ€™t know if it works with all versions of windows.

+5
source share

You will need to bind jre to disk and create startup scripts. If you are not comfortable with simple scripts for running a package / shell, you can use something like JLauncher to create a โ€œrealโ€ executable.

+4
source share

JSmooth can do the trick with a JRE kit or request to install Java and for free . You can also set properties for the JVM

+4
source share

The easiest way is to enable the unpacked Java installation on the CD and use it to run the application.

There are AFAIK only 2 Java to exe compilers still on the market, one of which (Excelsior JET) is quite expensive and the other (GCJ) does not work in programs that use AWT or Swing.

+3
source share

Just burn jre to a CD and run the application inside the script package, which sets the CLASSPATH and JAVA_HOME variables pointing to your jre.

+1
source share

All Articles