way to avoid linking library in every Run configuration?

Started by ilazarte, July 24, 2006, 04:24:22

Previous topic - Next topic

ilazarte

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?

ndhb

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.