Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (116)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Newbie & Debugging Questions / Re: [LWJGL] UnsatisfiedLinkError //solved on: 2012-06-06 09:59:46
@princec: yes Smiley

Thank you for your help.
my workspace accidentally was on a shared folder (other computer)
which apparently results that the native can not be found (or something like that.)  Shocked

SOLVED

With best regards
~pl4n3

2  Game Development / Newbie & Debugging Questions / Re: [LWJGL] UnsatisfiedLinkError on: 2012-06-06 09:21:44
I've checked.

If the path is wrong, there is another error:

1  
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path


I'm confused.

With best regards
~pl4n3
3  Game Development / Newbie & Debugging Questions / Re: [LWJGL] UnsatisfiedLinkError on: 2012-06-06 09:10:34
do you mean the folder?




With best regards
~pl4n3
4  Game Development / Newbie & Debugging Questions / [LWJGL] UnsatisfiedLinkError //solved on: 2012-06-06 08:59:59
Hello Java-Gaming Community,

Please excuse my poor language skills.
I've just learned the basics of Java.
I try now to go a little further and maybe to create my first game with a game engine.

I've decided to use Slick and lwjgl for my first try.
Unfortunately I have already a problem.

I get this error message in eclipse:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\MyName\Desktop\test\lwjgl-2.8.4\native\windows\lwjgl.dll: The specified path is invalid
   at java.lang.ClassLoader$NativeLibrary.load(Native Method)
   at java.lang.ClassLoader.loadLibrary0(Unknown Source)
   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:75)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.lwjgl.Sys.doLoadLibrary(Sys.java:68)
   at org.lwjgl.Sys.loadLibrary(Sys.java:84)
   at org.lwjgl.Sys.<clinit>(Sys.java:101)
   at org.lwjgl.opengl.Display.<clinit>(Display.java:128)
   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 Game.main(Game.java:41)


Sourcecode i try to Run:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
import org.newdawn.slick.Animation;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Input;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.SpriteSheet;
import org.newdawn.slick.tiled.TiledMap;
 
public class Game extends BasicGame {
   private float playerX=320;
   private float playerY=240;
   private TiledMap map;  
   private Animation player;
   public Game() {
      super("Simple Test Code");
   }
   public void init(GameContainer container) throws SlickException {
      container.setVSync(true);
      SpriteSheet sheet = new SpriteSheet("data/player.png",32,32);
      map = new TiledMap("data/unbenannt.tmx");      
      player = new Animation();
      player.setAutoUpdate(true);
      for (int frame=0;frame<3;frame++) {
         player.addFrame(sheet.getSprite(frame,0), 150);
      }      
   }
   public void update(GameContainer container, int delta) {
      if (container.getInput().isKeyDown(Input.KEY_LEFT)) {playerX--;}
      if (container.getInput().isKeyDown(Input.KEY_RIGHT)) {playerX++;}
      if (container.getInput().isKeyDown(Input.KEY_UP)) {playerY--;}
      if (container.getInput().isKeyDown(Input.KEY_DOWN)) {playerY++;}
   }
   public void render(GameContainer container, Graphics g)  {
      map.render(0, 0);
      g.drawAnimation(player, playerX, playerY);
   }
   public static void main(String[] argv) throws SlickException {
      AppGameContainer container =
         new AppGameContainer(new Game(), 640, 480, false);
      container.start();
   }
}


Configuration: (Image)


Can you help me?
what am I doing wrong?

With best regards
~pl4n3








Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

radar3301 (12 views)
2014-09-21 23:33:17

BurntPizza (30 views)
2014-09-21 02:42:18

BurntPizza (20 views)
2014-09-21 01:30:30

moogie (20 views)
2014-09-21 00:26:15

UprightPath (28 views)
2014-09-20 20:14:06

BurntPizza (32 views)
2014-09-19 03:14:18

Dwinin (48 views)
2014-09-12 09:08:26

Norakomi (74 views)
2014-09-10 13:57:51

TehJavaDev (102 views)
2014-09-10 06:39:09

Tekkerue (50 views)
2014-09-09 02:24:56
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org 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‑gaming.org
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!