Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Java project deployment

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 stein102   Members   

556
Like
0Likes
Like

Posted 27 April 2012 - 04:26 PM

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

#2 Olaf Van Schlacht   Members   

1170
Like
0Likes
Like

Posted 28 April 2012 - 06:02 AM

Im deploying my Java Jar files with Ant Build Script.
Check it out online.

Follow my hobby projects:

Ognarion Commander (Java/LIBGDX): https://github.com/OlafVanSchlacht/ognarion-commander


#3 Kyan   Members   

395
Like
0Likes
Like

Posted 28 April 2012 - 08:38 AM

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.

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: http://www.lwjgl.org...JGL_Application

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




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.