I am using NetBeans 5.0 IDE on Windows XP. I have tried everything and I always get the error no jogl in java.library.path if i try to run the project from the ide. It builds fine.
I’ve put the jogl native dll’s into c:\java\jogl\ and added it to the classpath env variable. The only thing that works is to put the dlls into the /jre/bin but i read on another post not to do that.
What is the proper way to get this working?
Thanks
I will check out your plugin. But what does your plugin do to find the dlls?
In a normal Netbeans project go to project properties, select the “Run” section and add “-Djava.library.path=C:/java/jogl”. Under windows, putting the dlls into the working directory (or setting the working-directory to the dir the dlls reside) will also work.
thanks for the info, so are you saying that -Djava.library.path=C:\java\jogl won’t work for Windows XP, and that you have to put the dll’s into the working directory?
I tried the run argument -Djava.library.path=C:\java\jogl and that doesn’t work for me
Netbeans works just fine for me the way cylab has it set up. Are your dll’s actually in the c:\java\jogl directory?
Yes, also i run filemoniter and can see where it’s looking for the dll’s and it never tries c:\java\jogl\
Also I cannot download the plugin. Maybe the site is down. I’ll try later.
When I try to set the working directory and hit ok then go back to set it again it’s blank? Is this a bug in netbeans or am i just not doing something right?
OK … it appears that the working directory was not getting set because my project was corrupted or something…I made a new project and imported my program and I was able to set the working directory and then was able to run the program… also i was able to run the program if i put -Djava.library.path=C:/java/jogl in the VM options instead of the run args. Does that make sense to anyone? Anyway it works now.
Thanks for the help.
Specifying the java.library.path is the correct way of doing this. Under some circumstances you may have to quote backslashes in paths with a backslash so always specifying paths with forward slashes is IMHO a GoodThing ™. Sorry for not mentioning the VM options requirement, though…
Putting the dlls into the working directory is just a convenience way under windows: if you put your dlls beside an executable jar, they get found automatically if you double click the jar.
[quote]Also I cannot download the plugin. Maybe the site is down. I’ll try later.
[/quote]
That $!%§ tomcat is crashing on a regular basis with OutOfMemory. I think I will have a serious talk to the others deploying those memory hogs into “my” application server… but maybe after asking the one with root access to restart it
You have to put -D commands in the VM options line other wise they are passed to your program not to the VM. The run args line if for arguments that are passed to your program not to the VM. Happy coding.