Hello, my question is how to present my game created in java, I can run the game and all in textpad etc, but if I wish to send it to my friend so he can simply double click a single file and the game runs? I mean it�s no use sending him a .class file now is there?
Originally posted by Lahiru Abeydeera: Create a ".Bat" file in windows or an ".sh" file on linux. (just create a notepad file and insert the code u use to run the program there and save. When it is double clicked the program will run.
Sorry I dont know how to do it on mac
Recent versions of Mac OS are based on FreeBSD, so you can use the same .sh file as for Linux. I know this can be run from the command-line. It should also be "double-clickable", but my experience with Mac is limited and I can't say for sure.
You can go to www.zerog.com to download their InstallAnywhere installer. It's buried pretty deep, so you need to do some searching, but they do offer a free version of their installer. It will make installers for every platform, but I pretty much find that I only need to create a Windows installer. You can specify that the installer include the Java runtime.
As for Mac OSX, you can be guaranteed that every copy ships with a Java runtime (and actually, the Java SDK for that matter.) You can't be guaranteed what version of Java the user has, but at this point, it's probably the rare OSX user that doesn't have Java 1.4+. So if you create an executable JAR, any OSX user will be able to double-click it to launch the app.
I don't think there's much of a philosophical problem with creating different installers or execution methods for different platforms, so long as the Java binary code is the same. But maybe that's just me...
Dave Taubler<br />Specializing in <a href="http://taubler.com/articles/" target="_blank" rel="nofollow">Java and Web Development</a>
Joined: Sep 18, 2004
Hi Nick, Sorry for being late, For the question I haven't used J2Exe on any OS other than Windows