Slick Forums

Discuss the Slick 2D Library
It is currently Sun May 19, 2013 3:20 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Feb 13, 2012 8:06 pm 
Offline

Joined: Mon Feb 13, 2012 7:50 pm
Posts: 1
I apologize for bringing this problem up again, as I have seen it seems to happen to many people. I have followed many tutorials on how to set up slick and lwjgl. I have added both of the jars to the referenced libraries, i even added lwjgl.util.jar just in case I needed it. I even added an archive of the lwjgl.dll into the workspace that I was currently in for the test I was running and I still seem to get an error.

I am decently sure I have an updated version of the .dll, since I downloaded the most updated versions of both slick and lwjgl

I have the most updated drivers for openGl, I know it must be some small oversight on my end, but it is a very aggravating problem.

Code:
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.lwjgl.DefaultSysImplementation.getPointerSize()I
   at org.lwjgl.DefaultSysImplementation.getPointerSize(Native Method)
   at org.lwjgl.Sys.<clinit>(Sys.java:113)
   at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
   at org.newdawn.slick.AppGameContainer$1.run(AppGameContainer.java:39)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.newdawn.slick.AppGameContainer.<clinit>(AppGameContainer.java:36)
   at basicGame.basicGame.main(basicGame.java:30)


http://i.imgur.com/ZElY3.jpg

Picture of my current Eclipse screen, with error, code, and referenced libraries, (includes the .dll's because the native library for lwjgl.jar is my workspace.)


Top
 Profile  
 
PostPosted: Tue Feb 14, 2012 4:09 pm 
Offline
User avatar

Joined: Mon Feb 13, 2012 9:52 pm
Posts: 3
Location: Stoke
Do you also have your -Djava.library.path= set up correctly?

in the VM arguments section of Run > Run Configurations... you put -Djava.library.path=path/to/natvies relative from your project root.

For the sake of keeping things neat I have things set up like this:

Code:
EclispeProject:
    > bin
    > lib
       - slick.jar
       - lwjgl.jar
    > src
       > ( my source packages)
       > resources
          > lwjgl
             > (all the natives)
          > images


Eclipse will copy over the resources folder to the bin directory when you build the project and it is worth remembering that the working directory of the running application is the root of the project ( so EclispeProject/ in this case ). However because of this though you will need to set your library path to either src/resources/lwjgl/natives/OS or bin/resources/lwjgl/natives/OS


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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