Slick2D funktioniert nicht in Eclipse

Hallo zusammen,

ich habe ein Problem mit Slick2D.
Es gibt ja einige Anleitungen im Netz wie Slick2D in Eclipse eingerichtet werden muss.
Nur bekomme ich immer folgende Fehlermeldung:

Exception in thread “AWT-EventQueue-0” java.lang.UnsatisfiedLinkError: no lwjgl64 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.lwjgl.Sys$1.run(Sys.java:72)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
at org.lwjgl.Sys.loadLibrary(Sys.java:87)
at org.lwjgl.Sys.(Sys.java:117)
at org.lwjgl.opengl.Display.(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.(AppGameContainer.java:36)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Ich verwende aktuell Eclipse Oxygen.3

??

http://wiki.lwjgl.org/wiki/Setting_Up_LWJGL_with_Eclipse.html

So wie es aussieht hast du den letzten Schritt nicht gemacht.

Finally we need to setup the native component of LWJGL. This is done by clicking the little arrow next to the lwjgl.jar file to show the drop down list. Double click ‘Native library location’ and select the folder that contains the native files for your operating system and clicking OK. These are located in the natives folder include in the LWJGL download bundle (e.g. On Windows you’d point to the natives\windows folder which contains the *.dll files, On Mac you’d point to the natives/macosx folder and on Linux you’d point to the natives/linux folder).

Hallo, hab ich auch gemacht:

image

und so sieht der Natives-Ordner aus:

image

Funktioniert trotzdem nicht.

Gib bitte da den absoluten Pfad zu den dlls an.

Wie gebe ich den absoluten pfad für mehrere datein an?

Ich glaube, es war gemeint, dass du nicht /Test/Slick2D/natives angeben solltest, sondern (vermutlich)

C:/Test/Slick/natives

BTW: Bei mir liegen die natives nach dem Auspacken von Slick direkt im Slick-Ordner

Hab es jetzt mal von der Platte geladen und nicht vom Projekt heraus.
Funktioniert auch nicht.

*seufz* Sind das die natives von Slick, oder hast du die irgendwo anders her?

Leute, ich habe das Problem gefunden, endlich!!

Irgendwie habe ich aus versehen die natives auch in “Source” angegeben.
Das hat das Problem verursacht.

Danke für eure Hilfe!!