LWJGL
May 23, 2013, 06:09:12
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
LWJGL is now using GitHub
Home
Help
Search
Login
Register
LWJGL
>
Programming
>
LWJGL Documentation
>
"no lwjgl in java.library.path" in eclipse
Pages: [
1
]
« previous
next »
Print
Author
Topic: "no lwjgl in java.library.path" in eclipse (Read 24712 times)
doublethink
Newbie
Posts: 2
"no lwjgl in java.library.path" in eclipse
«
on:
October 05, 2007, 12:46:58 »
Hi all!
I am having a problem setting eclipse up with LWJGL. I have set the path to the libraries to:
Default VM Arguments: -Djava.library.path="C:\Program Files\Java\lwjgl-1.1.2\native\win32"
The dlls are in this folder, but obviously I have missed something out here. For the life of me I can't seem to find the problem. :/
Any help would be greatly appreciated!
Logged
Schnitter
Newbie
Posts: 43
Re: "no lwjgl in java.library.path" in eclipse
«
Reply #1 on:
October 05, 2007, 13:12:33 »
The argument must be relative to the class path.
Logged
doublethink
Newbie
Posts: 2
Re: "no lwjgl in java.library.path" in eclipse
«
Reply #2 on:
October 05, 2007, 22:21:59 »
I'm not really sure what you mean by that
Logged
Schnitter
Newbie
Posts: 43
Re: "no lwjgl in java.library.path" in eclipse
«
Reply #3 on:
October 06, 2007, 02:17:39 »
Ok.^^ You can i.e. create a folder in the project-folder in your workbench(Eclipse?). In the folder you created, you copy the lwjgl-folder.
Than you can write i.e. -Djava.library.path="lwjgl\native\win32\"
Logged
aldacron
Regular nerd
Posts: 67
Re: "no lwjgl in java.library.path" in eclipse
«
Reply #4 on:
October 06, 2007, 12:13:09 »
Quote from: Schnitter on October 05, 2007, 13:12:33
The argument must be relative to the class path.
That's actually incorrect. Absolute paths work just fine. Besides which, the classpath has nothing to do with the library path. There's some other issue afoot here.
Logged
CaptainJester
Talks Too Much
Posts: 175
Re: "no lwjgl in java.library.path" in eclipse
«
Reply #5 on:
October 16, 2007, 07:02:35 »
Could be a problem with Eclipse. Try running something from the command line. If that works, then I'd say try re-installing Eclipse.
Logged
The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities. We need men and women who can dream of things that never were.
- John Fitzgerald Kennedy(35th US President)
hexogon
Newbie
Posts: 1
Re: "no lwjgl in java.library.path" in eclipse
«
Reply #6 on:
December 06, 2007, 17:45:26 »
I think if you right click your project in the package explorer there should be a 'properties' item. The properties dialog should have a section called 'build' or something similar. This is where you add libraries to your project under eclipse. You probably want to create a library called 'LWJGL' and add it here configured to point to lwjgl's jars, javadoc, source and native libraries (the native libraries part seems to be where your problem lies). If I remember correctly you can specify separate javadoc, source and native library paths for each jar here (ie lwjgl.jar, jinput.jar, lwjgl_util.jar, etc...) setting these up may make your life a lot easier.
I believe you can also alternatively just throw the native dll's (or so's, or whatever) into the same folder as your compiled jar - but i'm not sure about that and you could run into home path problems if you dbl-click to run your jar. Anyone know for sure?
hope that helps, I can't remember the exact details at the moment - but the general idea is to setup a library pointing to the lwjgl jars + lwjgl native librarys (dlls) and make sure the library is linked with your project.
Logged
Erodan
Newbie
Posts: 1
Re: "no lwjgl in java.library.path" in eclipse
«
Reply #7 on:
August 03, 2008, 06:19:48 »
ive got a problem too when compiling
java.lang.NoClassDefFoundError:[nativeDllPath]
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
i think i have done everything as sayed in the installation guide but it seems that ive messed with a path
Logged
Matzon
Administrator
Demigod
Posts: 2239
Re: "no lwjgl in java.library.path" in eclipse
«
Reply #8 on:
August 04, 2008, 00:28:26 »
there aren't any lwjgl parts in that stacktrace...
Logged
http://lwjgl.org
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Programming
-----------------------------
=> Lightweight Java Library Game Development
=> LWJGL Documentation
=> Bug Reports / RFE
=> OpenGL
=> OpenAL
=> General Java Game Development
-----------------------------
Archive
-----------------------------
=> Resolved Bugs/RFE
=> DirectX
=> DevIL
=> FMOD
Loading...