This site requires JavaScript, please enable it in your browser!
Greenfoot back
danpost
danpost wrote ...

2011/7/25

What downloads required to run executable jar files?

danpost danpost

2011/7/25

#
I have another computer in the house that is running XP Home. What would I need, at minimum, to download to that system in order to run a scenario that has been published as an executable jar file?
mjrb4 mjrb4

2011/7/26

#
You'd need the JRE, but not the JDK. The JRE is used for running Java programs (and many / most PCs will have it installed anyway because you need it to run Java applets or any other software written in Java.) You just need the JDK if you're doing Java development.
danpost danpost

2011/7/26

#
Are there any programs that would change an Executable Jar File to an .EXE, or similar, format?
mjrb4 mjrb4

2011/7/26

#
Not really - it doesn't work like that. Most of the programs you find out there that wrap jars up in exes will literally be doing that, the exe will just contain the jar and launch Java to run it. So you'd still need Java on your system for it to work. The one advantage these do have is that if you haven't got a JRE installed, the exe can often prompt you to download it (whereas a jar file just wouldn't work.) Other than those type of "wrapper" programs, the others generally come in two sorts, those that wrap up the jar as well as a JRE in the exe file (creating a huge file and meaning really you might as well just download the JRE and install it separately) or those that compile the Java code to machine code rather than Java bytecode (GNU GCJ is the only one I know that does this and not really practical to use in this case, it'd be a lot of work assuming it did work!) In short, there are various programs around but they're not a magic bullet and the vast majority of the time you're better off without them!
You need to login to post a reply.