Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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).
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.
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
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.
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....
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....
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!!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.