Slick Forums

Discuss the Slick 2D Library
It is currently Fri May 24, 2013 6:13 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Jun 06, 2012 3:03 am 
Offline

Joined: Tue Jun 05, 2012 4:09 pm
Posts: 23
Hey, I just started developing using Slick 2d and lwjgl and I am having a tough time making a runnable jar.
Whenever I run from eclipse my program runs perfectly fine, whenever I go to export into a runnable jar and try to run it nothing happens.
I don't get an error or anything, I just double click it and nothing happens. So I tried using JarSplice and I'm still having issues, my program opens at the correct resolution (800, 600) for a second (only with a black screen) and then crashes and doesn't supply an error....

I'll try to start from the top of what I am doing so enough information is being supplied about my problem

When I export my project,
Highlight Project -> Export -> Java-> Runnable JAR file.
Launch Configuration: SlickRPGGame - rpgGame
Export Destination: C:\Users\Griever\Desktop\SlickRPGGame.jar
Library Handling: Package required libraries into generated Jar.
Finish...

When I run it like this NOTHING happens

Open JarSlice....

Add Jars:
SlickRPGGame.jar
ibxm.jar
jogg-0.0.7.jar
jorbis-0.0.15.jar
lwjgl.jar
slick.jar

Add Natives:
jinput-dx8.dll
jinput-dx8_64.dll
jinput-raw.dll
jinput-raw_64.dll
lwjgl.dll
lwjgl64.dll
OpenAL32.dll
OpenAL64.dll

Main Class:
javagame.SlickRPGGame

Create Fat Jar

When I run it like this the window opens for a second.

Help please :(, a noob appreciates it very much<3.
Thanks in advance, guys.


Top
 Profile  
 
PostPosted: Wed Jun 06, 2012 3:40 pm 
Offline

Joined: Wed Feb 15, 2012 10:17 am
Posts: 11
Try running the jar file from the command line.
Errors will be spewed out there if anything is wrong.

Use this command:
Code:
java -jar yourJarName.jar


Top
 Profile  
 
PostPosted: Wed Jun 06, 2012 5:30 pm 
Offline

Joined: Thu Jan 26, 2012 5:40 pm
Posts: 79
BenHolt wrote:
Try running the jar file from the command line.
Errors will be spewed out there if anything is wrong.

Use this command:
Code:
java -jar yourJarName.jar


Yep, report back with the error it spits out so we know what's wrong.


Top
 Profile  
 
PostPosted: Thu Jun 07, 2012 3:59 am 
Offline

Joined: Tue Jun 05, 2012 4:09 pm
Posts: 23
Yeah I ended up getting it, when I executed my jar I wasn't including my res folder in there. So NONE of my resources were being found.
Silly noob mistake, heh ^-^.


Top
 Profile  
 
PostPosted: Thu Jun 07, 2012 4:33 pm 
Offline

Joined: Thu Jan 26, 2012 5:40 pm
Posts: 79
ravnerous wrote:
Yeah I ended up getting it, when I executed my jar I wasn't including my res folder in there. So NONE of my resources were being found.
Silly noob mistake, heh ^-^.


Not at all, the process is very confusing and there doesn't seem to be one solution perfect for everyone. Glad you figured it out!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group