Why Java games do not need installation

Started by
7 comments, last by Jason Z 9 years, 9 months ago
I never thought about this until now. The Java games I developed never need the installation treatment.

I can just distribute the Jar file executable (Java archive file) along with the src folder and the person can just click the jar file and the program gets loaded into ram and the user can play the game.

My games are all Java applications.
Advertisement

Java applications do not run without Java runtime installed, it just happens that most users have it installed. On top of that all resources get packaged into .jar file, so you don't need any external files.

Same can be achieved with .exe files, but you wouldn't like 20 GB .exe file, would you?


I never thought about this until now. The Java games I developed never need the installation treatment.
That only tells me your games aren't complex enough to require an installation procedure.

What happens if you want someone to play your game in Windows, and want your program installed in Program Files, with a Start-> programs menu, a desktop icon, and an uninstaller, wouldn't that need a dedicated installation procedure? Regardless of your game being made in Java, C or Haskell?

"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"

My journals: dustArtemis ECS framework and Making a Terrain Generator

Any installer just copies and edits certain files, but only because the game was made expecting those files in those places. Many non-java apps can run without installing them (a lot of applications can be downloaded with an installer or as a portable file) and you can make installers for java games.

Also, an installer could let you chose a folder to store the game or some other option. In big games the install directory matters. And as TheChubu said, without an installer you would hav to tell the user how to add a shortcut on the desktop, or add some registry entries so the game shows up in "Add and remove software" to be uninstalled. If the game stores the savefiles in My Documents and you delete the .jar, nothing would delete the savefiles, so an uninstaller could be usefull there.

Some games use an installer for security too, making it more difficult to use illegal copies.

Anyway, if you make a C++ game with Visual Studio you'll end up with a .exe file and a folder with resourcers, and you can share that to anyone using a compatible platform just like you do with your java game. Using an installer is not a mandatory part of any languages, is just something you add if you need or want to.

Just to be clear on this matter, a .Net / C++ game can be written for Windows that does not require any installation. Of course the game will not run if the necessary version of .Net / redistributable is not installed, just like a java game will not run without the Java VM installed.

Installallers are only necessary if you want to go the extra mile & install the redistributable at the same time as your game, and also set up things like start menu integration, data folders etc also.

Storm Clouds over the Western Front - 2D aerial combat WIP | DarklightXNA on Twitter | 2DFlightSim on Youtube

I never thought about this until now. The Java games I developed never need the installation treatment.

That only tells me your games aren't complex enough to require an installation procedure.

What happens if you want someone to play your game in Windows, and want your program installed in Program Files, with a Start-> programs menu, a desktop icon, and an uninstaller, wouldn't that need a dedicated installation procedure? Regardless of your game being made in Java, C or Haskell?

I developed a rpg in Java and it could be played fine without installation.

It seems to be a minor issue in terms of time if I wanted the user to go to the start menu to find my games when it could quickly be played after downloading the game to the desktop.


I developed a rpg in Java and it could be played fine without installation.

All games could be played without installation.


It seems to be a minor issue in terms of time if I wanted the user to go to the start menu to find my games when it could quickly be played after downloading the game to the desktop.

So because you want your game on the desktop, you think everyone else does too?

Installers exist to make life more convenient for users. If you don't care about that, it's fine, but don't expect to end up with a large satisfied audience.


and the person can just click the jar file and the program gets loaded into ram and the user can play the game.

I can't at work. Unless your jar is properly signed I'll never be able to run it.

You can also write games ina myriad of other languages without an installer. The installer is just there to make things convenient for the end user.


That only tells me your games aren't complex enough to require an installation procedure.

That seems slightly misguided - I wouldn't count requiring registry settings or special installation locations as a measure of complexity...

To the OPs original question, it is clear that you need the java runtime environment for running your game - so as the others have mentioned, you have just been lucky so far that nobody tried to run your game without it already installed. C++ has similar requirements in the form of the redistributable packages on Windows (not sure about Linux though...). So the overall answer to your question is that you actually do require an installer, you just haven't run into a user that didn't have your pre-requisites already installed.

This topic is closed to new replies.

Advertisement