It’s saying that it can’t find the bundled jre. I’ve tried various combinations but I guess I’ve yet to find the right combo. I’m pretty uselss at this stuff and tend to resort to guesswork until something works.
I have an AlienSwarm directory that contains my jar, classes, images etc. It now also contains a jre7 directory that is a straight copy of the standard jre7 directory. I comile the program using the following:
E:\Dropbox\Projects\AlienSwarm>javac AlienSwarm.java
Note: AlienSwarm.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
E:\Dropbox\Projects\AlienSwarm>jar -cfm AlienSwarm.jar Manifest.txt *.class *.wav *.png *.dat *.ico jre7
And then I use the Launch4J app to package the lot. I’m pretty sure it’s including the jre7 directory because the exe size has now jumped to around 50MB from around 1.5MB. Within the Launch4J app it asks for a bundled jre path and I enter “./jre7” I also tried “…/jre7” but with the same results. Obviously without the quotes.
Any ideas?
Mike
PS the error message is “This application was configured to use a bundled Java Runtime Environment but the run time is either missing or corrupt”