Deploying Java game help
Posted by DivideByZero
May 28th, 2011 11:01 am
I’m making my entry in Java (as I stated in a previous post), but I don’t know how to deploy my game so that you guys can download it.
I’m using Eclipse as my IDE and pure Java only, no external frameworks.
Any ideas on the best way to deploy my game?
Thanks for any help
That depends on the nature of the application. Is it a Java Applet? If yes, then its pretty easy:
Embed the jar or the main .class file on a html page and you’re done.
If you’re using Webstart or creating a desktop java app, then things get a little fuzzy. But you will need to be more specific.
It’s a desktop java application.
I’ve only started Java so I don’t know much about applets yet.
Are you using Swing? Maybe you could try “webstart”. It works like a desktop app, but it takes care of all of the installation over the web.
Easiest way would be to just create a “runnable jar” (right-click on project->export->runnable jar(or similar), choose there your project and it will create one big jar with all needed libraries. this you can start just by using java -jar yourjar.jar (jni-libraries are not included and need to be added seperately) ) This is by far the easiest way.