finishing up the game for delivery (like puppygames)

hello,
my game is pretty finished so far, the only step remains is to clean it up for delivery.

it consists of the main jar, some library jars, some native dlls and of course all the game data like textures.

ideally i want to have that all packed into one file, (*.exe for windows) that the user clicks and the game starts.

also, what about the java virtual machine? i see that puppygames delivers its games with their own JVM. how is that done?

so can i delivar a stripped down JVM that only includes the packages i really need?

thanks a lot!

How to bundle a JRE

Do a search for “exe files” here if you are interested in that

This is legally impossible. Sun requires you to redistribute the (more or less) unmodified JRE only. See “Redistribution of the Java 2 Runtime Environment” section in the README.txt under the “jre”-directory for more details.

thanks for the info.

then how does puppygames redistribute the jre?
it seems they have packed the jre inside one large executable.

you could have a look into gcj, if you dig around on the lwjgl forum theres a post on how to get it to work with lwjgl, that way you can build a native version for the system you are targeting without the jre.

thanks,

i am still wondering how puppygames manages to pack their games into such an extremely small installer-file. do they maybe use a different JVM?

I think Cas uses Excelsior JET (http://www.excelsior-usa.com/jet.html). This is a AOT compiler that can reduces the size of your app and maybe the JVM too? Anyway, the main reason for using JET is for better speed execution and better start up time.