VM arguement problem

I had no problems with compiling jme projects with eclipse since I have upgraded eclipse to the latest. I use cvs import, added jme project to the project path and also entered -Djava.library.path=lib/ to the VM argument but still I get the error below when I try to run my code using jme.  I can compile and run the demos inside jmetest.TutorialGuide succesfully. Maybe something changed with eclipse latest version? Any ideas?



19.Oca.2007 09:42:43 com.jme.system.PropertiesIO load

WARNING: Could not load properties. Creating a new one.

java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path

Try -Djava.library.path="./lib" instead or use an absolute path

already tried that too and the exact path. At last I did the solution of llama and it works.

glad You're rolling  :slight_smile:



…erm what was the solution of llama ?



(edit typo)

by adding -Djava.library.path=/lib to your project you try to acces yourproject/lib and not jme/lib



in eclipse you have 2 options:

  1. add (in eclipse) the VM argument -Djava.library.path=${project_loc:jME}/lib
  2. or the better one as you have to do it only once and not for every project: http://jmonkeyengine.com/mark/?p=162

I see, but i'm on netbeans here and ./lib works for me on win but not on linux.

The absolute paths however works for both so i'll stick to this for the moment

erol was asking about eclipse. sorry, can't help you with netbeans. maybe a netbeans user can help you  :expressionless:

Thanks, no problem, it works fine with the absolute path (and i'm to lazy to go after it now)