LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-24-2009, 08:20 PM   #1
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 240

Rep: Reputation: 31
Can't run netbeans? Fedora 9, x64


Ok. I've tried a few different ways to get netbeans working on this Fedora installation. It's running fine on my wife's Ubuntu machine and my old fedora 6 box.

Code:
alternatives --config java
There are 2 programs which provide 'java'.

  Selection    Command
-----------------------------------------------
*+ 1           /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
   2           /usr/lib/jvm/jre-1.5.0-gcj/bin/java

Enter to keep the current selection[+], or type selection number:
I also have the jdk installed in /usr/java/jdk1.6.0_11

which java returns /usr/bin/java which is linked to /etc/alternatives/java which (as above) is linked to jre-1.6.0-openjdk

I downloaded several versions of installs for netbeans. The .sh, the rpm, the rpm.bin, and finally even the .zip (open distro).

All of them actually install, and the problem is that when I run netbeans from the command (or anywhere else) I get no errors ... it just thinks for a couple seconds, and returns.

Any help?
 
Old 01-25-2009, 07:10 AM   #2
mhearne
Member
 
Registered: Nov 2004
Location: Amarillo, TX
Distribution: Mandriva
Posts: 91

Rep: Reputation: 15
Well, you may not have a match on the jdk.

I simply copied the cd into a directory (/opt/netbeans) and put a shortcut into my menu (I'm using mandriva 2008.1) This works ok for me.

I have a number of jdk's and runtimes because there are programs that insist on a specific installation. It doesn't help to link (for instance you have sdk 1.5.0 and make a link to 1.3 something) So I just kept all the old distributions in place.

I'm not doing development, but some of my scientific programs insist on specific libraries. This is because they were compiled statically. If only the developers would get wise and specify "library-1.2.3.4 _or-above_ then all would be well. They don't seem to understand that our libraries change daily.

Well, I'm rambling and not helping much, but I noticed that no one else had replied, and I wanted to let you know that at least you are being read.

Michael
 
Old 01-25-2009, 10:05 AM   #3
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 240

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by mhearne View Post
Well, you may not have a match on the jdk.
I don't think that's the case because Netbeans is usually very specific about telling you that you don't have a JDK, and it can run on a large variety of JDK's (so you can develop for older versions).

Thanks for the reply, though!
 
Old 02-01-2009, 01:41 PM   #4
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 240

Original Poster
Rep: Reputation: 31
Found a few more things:

Netbeans will try to run if you give it an argument like --help (something simple ... anything else executes the whole command string and just silently dies). I get the following:

Code:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/java/jdk1.6.0_11/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
Sure enough, there's no libXtsts.so.6 in that directory. I have on in my /usr/lib64 (but not /usr/lib).

I also went down the rabbit hole of both the netbeans and nbexec shell scripts a bit. They /do/ run to completion, they just die with an exitcode of "2"

So I'm still stuck and unable to use netbeans in Fedora9x86_64 at the moment. The shell install completes normally, just running netbeans doesn't.

Fedora 5 32 bit works fine and Ubuntu works fine (there's packages for installing in Ubuntu and the shell script worked in Fedora 5). Windows even works fine.
 
Old 11-01-2009, 09:01 AM   #5
Fedora_Core_User
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
Same Problem Here mate....

Same problem here...trying to look into the matter as well........I beleive you are also getting the Unsatisfied Link Error for libmawt.so.....I think the problem here is incorrect JDK version.....not sure but stil look into the problem.....



Quote:
Originally Posted by JohnLocke View Post
Found a few more things:

Netbeans will try to run if you give it an argument like --help (something simple ... anything else executes the whole command string and just silently dies). I get the following:

Code:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/java/jdk1.6.0_11/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
Sure enough, there's no libXtsts.so.6 in that directory. I have on in my /usr/lib64 (but not /usr/lib).

I also went down the rabbit hole of both the netbeans and nbexec shell scripts a bit. They /do/ run to completion, they just die with an exitcode of "2"

So I'm still stuck and unable to use netbeans in Fedora9x86_64 at the moment. The shell install completes normally, just running netbeans doesn't.

Fedora 5 32 bit works fine and Ubuntu works fine (there's packages for installing in Ubuntu and the shell script worked in Fedora 5). Windows even works fine.
 
Old 11-01-2009, 09:14 AM   #6
Fedora_Core_User
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
Man ohhh man.....

The problem is quite simple...........the installer asks for the JDK Home directory.....but in reality it is looking for the JRE DIRECTORY....in my case.......:::

./netbeans --jdkhome /opt/jre1.6.0_16

and everything seems to work fine........bummer....
 
Old 11-01-2009, 09:28 AM   #7
Fedora_Core_User
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
Make changes permanently.....

One more thing........it is quite annoying to use the parameters all the time...a better thing is to edit <NETBEANS_INSTALLATION>/etc/netbeans.conf

There, look for the entry:
# Default location of JDK, can be overridden by using --jdkhome <dir>:
netbeans_jdkhome="/opt/jre1.6.0_16" <-- change to your JRE FOLDER

Then you are done my friend....By the way... I can't take the credit for this, I found the solution googling....
 
Old 11-04-2009, 11:33 AM   #8
Fedora_Core_User
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
Sorry....that dont work either............The solution is:

Actually that doesn't work either....when you try to build or create a new project...you start getting errors.....so..the only thing that worked for me was:
1) download jdk-6u16-linux-x64.bin and install it first, which contains only the JDK
2) download java-tools-bundle-update7-linux.sh, which contains everything (PORTAL PACK, NETBEANS IDE, etc) except for the JDK!

After folllowing this procedure, everything seems to be in working order!!!

Take care.
 
Old 11-18-2009, 04:56 AM   #9
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 240

Original Poster
Rep: Reputation: 31
Just got back from a trip, so I wasn't able to respond until now.

Thanks for posting a possible solution! I'll try it out when I get the chance and mention how it goes.
 
  


Reply



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
How to run virtual box and netbeans adred Linux - Newbie 3 07-11-2008 09:16 PM
using JAVA and Netbeans in Fedora core6 me4linux Linux - Software 7 03-10-2007 02:33 AM
Netbeans compile and run, but I can't do it from the console... chief_officer Programming 2 05-22-2006 01:41 AM
can i run linux mandriver x64 with windows x64 bit if so wich one should i install fi malmac2000 Linux - Software 2 04-26-2006 07:04 AM
Installed netbeans but won't run. zwyrbla Linux - Software 4 04-13-2006 09:42 AM

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

All times are GMT -5. The time now is 01:23 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