LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   NetBeans, JOGL problem. (https://www.linuxquestions.org/questions/linux-software-2/netbeans-jogl-problem-667798/)

yezu 09-05-2008 11:57 AM

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
Does anybody know what I can do?

thanks :)

wget 09-05-2008 12:52 PM

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

yezu 09-05-2008 01:10 PM

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.

wget 09-05-2008 02:39 PM

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?

wget 09-05-2008 03:03 PM

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 ?

yezu 09-07-2008 01:32 AM

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.