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 (408)
games submitted by our members
Games in WIP (293)
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  
  Looking for a step by step "how to create an applet using lwjgl" with eclipse  (Read 1711 times)
0 Members and 1 Guest are viewing this topic.
Offline accion mutante

Junior Newbie





« Posted 2009-12-19 00:11:18 »

Hi,
I read a lots of docs, tuto, posts and I can't get an applet to work with lwjgl and eclipse. My last error is:
Quote
Exception in thread "Thread-3" java.lang.UnsatisfiedLinkError: no lwjgl 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:65)
   at org.lwjgl.Sys.loadLibrary(Sys.java:81)
   at org.lwjgl.Sys.<clinit>(Sys.java:98)
   at org.lwjgl.opengl.Display.<clinit>(Display.java:129)


Can somebody give/write me a CLEAR and FUNCTIONAL step by step tutorial (which package to use, which jar to import, etc...)

My steps:
-download lwjgl_applet-2.2.1.zip.
-create jar folder in the project.
*first problem -> by reading this:http://lwjgl.org/wiki/doku.php/lwjgl/tutorials/applet I dont find some of the jars but a bunch of lzma files.
-I found the apropriates jars and insert them in my jar directory.
-I linked these jar by right clicking my project->properties->java build path->libraries->add jars->select the jars in my jar folder.
-edit (maybe not correctly) like said in the past link.
-edit my code or adapt like here http://java-game-lib.svn.sourceforge.net/viewvc/java-game-lib/trunk/LWJGL/src/java/org/lwjgl/test/applet/GearsApplet.java?view=markup
-try to launch under eclipse: fail (see error below)

Please, help me.

thanks
Offline indexunknown

Junior Member





« Reply #1 - Posted 2009-12-19 10:41:30 »

You need to 1. download lwjgl 2.2.1.zip
and before first time launching applet you need to right click on GearsApplet.java and select run as->open run dialog->arguments->VM arguments and write into the box -Djava.library.path="PATH TO LWJGL DIRECTORY\lwjgl-2.2.1\native\windows"  or native/linux or native/mac.   And then if u click apply and run it should work.
Offline accion mutante

Junior Newbie





« Reply #2 - Posted 2009-12-20 17:55:16 »

Thank you very much for you reply. I did what you said and ... it crashed my computer! (blue screen).
After that I've updated my vista pack and run my applet "as an applet " and it works! great!

summary:
-download lwjgl-x.x.x.zip
-import the jars in the project and reference them as libraries
-add: -Djava.library.path="PATH TO LWJGL DIRECTORY\lwjgl-2.2.1\native\windows"  or native/linux or native/mac in Run configurations/arguments tab/VM arguments textarea.

Now I would like to know the purpose of the lwjgl_applet-x.x.x.zip pack, can you explain me?

Once more thanks, very appreciated.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks 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 (147 views)
2013-05-17 21:29:12

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

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

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

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

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

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

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

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

UnluckyDevil (248 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.09 seconds with 20 queries.