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).
Here's one way ... Bundle Java (JRE) and run a Java application with 7zip SFX! ... (Convert Java applications to an executable, for example)
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.
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.
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
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.
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.