LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: ilazarte on July 24, 2006, 04:24:22

Title: way to avoid linking library in every Run configuration?
Post by: ilazarte on July 24, 2006, 04:24:22
I'm cutting and pasting nehe tutes into Eclipse, and for each one I have to add the path statement in the Run configruation for each class.. is there a way to do this at a project level?  or have Eclipse figure it out somehow?
Title: Eclipse Runtime Configuration
Post by: ndhb on July 27, 2006, 15:45:23
Hi. What you can do is this:

1) Go to Window -> Preferences -> Installed JREs.
2) Add JRE and Browse to usual JRE Runtime.
3) In the Textbox 'Default VM Arguments' specify the -D argument specifying the location of the native files.

Eg. Windows (with LWJGL installed one directory up from Eclipse Workspace) looks something like -Djava.library.path="../../lwjgl/lwjgl-1.0beta2/native/win32".

Now either make it the Default VM or specify this VM in your Project Properties.