LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-05-2008, 11:57 AM   #1
yezu
LQ Newbie
 
Registered: Apr 2007
Location: Gdynia, Poland
Distribution: Fedora 10/11
Posts: 22

Rep: Reputation: 15
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
 
Old 09-05-2008, 12:52 PM   #2
wget
LQ Newbie
 
Registered: Apr 2008
Distribution: Slackware 12.0 Kernel 2.6.25, LFS 2.6.25.1 Kernel
Posts: 25

Rep: Reputation: 15
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
 
Old 09-05-2008, 01:10 PM   #3
yezu
LQ Newbie
 
Registered: Apr 2007
Location: Gdynia, Poland
Distribution: Fedora 10/11
Posts: 22

Original Poster
Rep: Reputation: 15
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.

Last edited by yezu; 09-05-2008 at 01:17 PM.
 
Old 09-05-2008, 02:39 PM   #4
wget
LQ Newbie
 
Registered: Apr 2008
Distribution: Slackware 12.0 Kernel 2.6.25, LFS 2.6.25.1 Kernel
Posts: 25

Rep: Reputation: 15
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?

Last edited by wget; 09-05-2008 at 02:44 PM.
 
Old 09-05-2008, 03:03 PM   #5
wget
LQ Newbie
 
Registered: Apr 2008
Distribution: Slackware 12.0 Kernel 2.6.25, LFS 2.6.25.1 Kernel
Posts: 25

Rep: Reputation: 15
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 ?
 
Old 09-07-2008, 01:32 AM   #6
yezu
LQ Newbie
 
Registered: Apr 2007
Location: Gdynia, Poland
Distribution: Fedora 10/11
Posts: 22

Original Poster
Rep: Reputation: 15
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Netbeans startup problem brownflamigo1 Linux - Software 3 08-29-2007 05:43 PM
LXer: Sun Announces the Latest in Open Source Tools with the Availability of NetBeans Visual Web Pack and NetBeans C/C++ Development Pack LXer Syndicated Linux News 1 12-31-2006 07:37 AM
netbeans installation problem tamtam Slackware 5 09-24-2006 10:31 AM
NetBeans Installation problem thisObject Linux - Software 3 04-17-2006 10:23 AM
Java & JOGL & udev install on Fedora probs! striderwho Linux - Newbie 0 01-30-2005 03:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration