NetBeans, JOGL problem.
I am currently making a 3d model editor in Java using NetBeans.
I have no problem in running it on Windows. However when I try run it on my openSuSE 11.0 I have: Code:
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path thanks :) |
Looks like it can't find the native library gluegen-rt
As a quick test, in a terminal export LD_LIBRARY_PATH=/path/to/where/gluegen-rt.so/is then try running your app again from the same terminal command line |
Well in a terminal the app ran. :) But NetBeans still gives me the no gluegen-rt thing.
Is this completely ok? As far as I know LD_LIBRARY_PATH is broken and shouldn't be used. |
You can also invoke it thus:
java -Djava.library.path=/pathToLibrary myprogram etc. Not sure how to add it to a netbeans project, but maybe google "add native library to netbeans project" will give a better answer than I can at the moment? |
I fired up my unused copy of netbeans.
In your project properties, There's a "Run" section with a box for "VM Options" maybe put -Djava.library.path=/pathToTheLibrary in there ? |
Putting -Djava.library.path=/pathToTheLibrary in VM box in NetBeans doesn't seem to work. However using the same switch in the terminal works fine, which is enough for me. :)
Thanks a lot! :D |
All times are GMT -5. The time now is 08:40 AM. |