Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (843)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Slick: lwjgl in java.library.path  (Read 2412 times)
0 Members and 1 Guest are viewing this topic.
Offline Abeardevil

Innocent Bystander

« Posted 2012-12-10 16:23:38 »

I know this is an extremely common problem, but I've followed all the instructions I can find for setting up Slick, which consists of this:

1. Create a new project
2. Add lwjgl.jar and slick.jar to build path (I also added slick-util.jar)
3. Add the natives under lwjgl.jar in the build path

Here's a screenshot showing that I have indeed done all this, and you can see the error I'm still getting for some reason below it. Have I done anything wrong or forgotten anything?
Offline teletubo
Global Moderator

JGO Wizard

Medals: 75
Projects: 4
Exp: 8 years

« Reply #1 - Posted 2012-12-10 18:51:53 »

No you didn't follow all the instructions, nasty boy !

Go to your run/debug configurations, and include this in your jvm Arguments :


Offline matheus23

JGO Kernel

Medals: 138
Projects: 3

You think about my Avatar right now!

« Reply #2 - Posted 2012-12-10 19:56:04 »


If the path he used in the "natives" property is the path to the .dll's or .so's, then it's right.
What Eclipse does is: It collects all paths given in all given libraries, and for each path it gets, it adds it to the jvm arguments with -Djava.library.path="all/the;paths/to;all/the;natives/and;even/much/more".

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline davedes
« Reply #3 - Posted 2012-12-10 20:02:14 »

Most likely you downloaded an old version of Slick that packages the natives inside of JAR files. You need to extract those and point Eclipse to the actual native files, or a folder containing the native files.

Ideally you should download a more recent version of Slick.

Offline myrealityde

Senior Newbie

Medals: 1
Exp: 3 years

Blogger, GameMaker, Creator.

« Reply #4 - Posted 2013-01-22 16:01:43 »

It's also important to include the natives for the operating system you're currently working with. In Eclipse IDE you can separately determine the native folder for each jar in the library path.

Blogger, GameMaker, Creator.
Pages: [1]
  ignore  |  Print  

EgonOlsen (38 views)
2018-06-10 19:43:48

EgonOlsen (20 views)
2018-06-10 19:43:44

EgonOlsen (40 views)
2018-06-10 19:43:20

DesertCoockie (187 views)
2018-05-13 18:23:11

nelsongames (122 views)
2018-04-24 18:15:36

nelsongames (121 views)
2018-04-24 18:14:32

ivj94 (861 views)
2018-03-24 14:47:39

ivj94 (122 views)
2018-03-24 14:46:31

ivj94 (758 views)
2018-03-24 14:43:53

Solater (139 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!