When distributing my game (for example, on this site): Should I provide an EXE launcher that wraps the JAR, only the JAR, or both? Thanks
Depends on what you want.
For a game you run from one file a JAR is normally fine.
If it is a big game which has to install itself first, an EXE is sometimes a good idea, at least for having an icon and such…
You should stop creating topics for this btw…
Just remember that .exes can only be run on windows. Provide a startup script or something for other platforms(.bat/.sh)
Obviously.
How does this help the topic/op in any way? I was just reminding the op that distributing as an exe is not always the best option. Contribute to the topic instead of just filling it with meaningless posts.
Ok, sorry, you are right.
Lets get back now.
Definitely use the exe/platform specifics if you’re looking for maximum exposure. A lot of people won’t know what a jar file is, so they won’t know to click on it. Obviously for small projects this doesn’t make much of a difference, though.
Thanks all of you. So I see an .exe is usually recommended (for Windows).
Could you suggest a good program to do an EXE launcher? Is Launch4j okay?
Also, is there a way to make sure that the EXE itself is compatible on all Windows platforms?
L4J does the job admirably. The .exe will run on any Windows platform; whether the rest of it does is another matter.
Cas
In mac and linux, I simply change the .exe extension to .jar and it runs perfectly with Jar Launcher. (Note that this works only for java exe wrappers)
You might also want to check out JWrapper: http://www.jwrapper.com/
I personally prefer jars, but I understand the appeal of executables.