Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (404)
games submitted by our members
Games in WIP (289)
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 11: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 11: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 11:10:34
do you mean the folder?




With best regards
~pl4n3
4  Game Development / Newbie & Debugging Questions / [LWJGL] UnsatisfiedLinkError //solved on: 2012-06-06 10: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]
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (32 views)
2013-05-17 21:29:12

alaslipknot (40 views)
2013-05-16 21:24:48

gouessej (70 views)
2013-05-16 00:53:38

gouessej (69 views)
2013-05-16 00:17:58

theagentd (78 views)
2013-05-15 15:01:13

theagentd (73 views)
2013-05-15 15:00:54

StreetDoggy (113 views)
2013-05-14 15:56:26

kutucuk (137 views)
2013-05-12 17:10:36

kutucuk (137 views)
2013-05-12 15:36:09

UnluckyDevil (145 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.204 seconds with 21 queries.