Sign in to follow this  
stein102

Java project deployment

Recommended Posts

I wrote a small client/server program using Java and I want to send it to my friend to test. I used the kryonet library as well as the slick2d library(It's a basic 2 player game). What I want to know is how I can give him a copy of the game that he can run. I've tried packaging it as a JAR, but I'm having trouble getting it to work properly. I'm using eclipse if it makes a difference.

Also, I was going to make a batch file for him to run it with, just like javaw -jar myJar.Jar

But I don't know how to include the libraries with that.

Thanks

Share this post


Link to post
Share on other sites
[quote]I wrote a small client/server program using Java and I want to send it to my friend to test. I used the kryonet library as well as the slick2d library(It's a basic 2 player game). What I want to know is how I can give him a copy of the game that he can run. I've tried packaging it as a JAR, but I'm having trouble getting it to work properly. I'm using eclipse if it makes a difference.[/quote]
It would help if you'd tell us what you've tried, in regards to the above method.

Deployment varies based upon what build system you are using. Maven, Ant, and Gradle all have automated plugins to handle this sort of things, although you generally need to inject the natives.

Personally, if I'm not using any of the above, I tend to package my jars by hand. You might review this artcle, since Slick2D is backed by LWJGL: [url="http://www.lwjgl.org/wiki/index.php?title=Distributing_Your_LWJGL_Application"]http://www.lwjgl.org...JGL_Application[/url]

The article also has other suggestions that you might find easier to use.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this