FedoraThis forum is for the discussion of the Fedora Project.
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.
I am having problems installing sun's JDK on my Fedora 7 box. I have installed the jdk 64bit .bin file using
Code:
chmod a+x jdk*
./jdk*.bin
I had already moved it to my home directory under a directory called java. Everything extracted fine (seemlingly, at least) and I downloaded netbeans. When I try to install netbeans, it tells me that it cannot find a JDK on my system....not even the one that came with Fedora. I have tried the is:javahome option like this
I am unsure as to why it is so difficult to install Sun's java on Fedora but I have been studying Mobile Games Development at university for the last three years, using netbeans, JDK and the mobility pack that is provided with netbeans to do my work. As I am comfortable using all this, I would much prefer to stick with it if possible. Any help and suggestions are so very appreciated.
To tell You the truth, I've tried installing some Java based apps myself and failed 'cause the same reason.
Namely, I've tried installing latest Limewire on recently installed FC7 and failed due to:
_____________________________________________________________________________________
error: Failed dependencies:
j2re >= 1.4.1 is needed by LimeWire-free-4.12.14-0.i386
but, take a look at this:
# /usr/sbin/alternatives --display java
java - status is manual.
link currently points to /usr/java/jdk1.6.0_01/bin/java
/usr/lib/jvm/jre-1.5.0-gcj/bin/java - priority 1500
slave keytool: /usr/lib/jvm/jre-1.5.0-gcj/bin/keytool
slave rmiregistry: /usr/lib/jvm/jre-1.5.0-gcj/bin/rmiregistry
slave jre_exports: /usr/lib/jvm-exports/jre-1.5.0-gcj
slave jre: /usr/lib/jvm/jre-1.5.0-gcj
/usr/java/jdk1.6.0_01/bin/java - priority 2
slave keytool: (null)
slave rmiregistry: (null)
slave jre_exports: (null)
slave jre: (null)
Current `best' version is /usr/lib/jvm/jre-1.5.0-gcj/bin/java.
_____________________________________________________________________________________
In other words, I have installed two Java packages on my system, but they don't seem to be detected during the installation (or at least, not the one that matters).
_____________________________________________________________________________________
# /usr/sbin/alternatives --config java
Enter to keep the current selection[+], or type selection number:
$ which java
/usr/java/jdk1.6.0_01/bin/java
_____________________________________________________________________________________
In other words, Sun Java is supposed to be default. I've intended to install NetBeans on my system, but I'll have to wait for it to download. Let You know how did it go.
Also, I've tried installing Java plugin for Firefox, just as I did before on FC4, 5, and 6, and browser doesn't report anymore "plugin missing", but the plugin doesn't work. I think it could be SELinux issue.
I'm about to look into this in the next few days,... since I don't want to turn off SELinux just because of this. It can be managed without turning SELinux off.
Oh, yeah, and another thing: in case You haven't noticed (as I haven't previously), when You extract the .bin file, JDK get's installed on Your system by default - no need to run rpm -ivh jdk*.rpm.
As You can see, I've installed JDK with no problems, but the problem of system not seeing it still remains.
that's JDK 1.5 update 12 with NetBeans 5.5.1... Both are installed to my ~home directory, and they both seem to work. For the former, I've tested its Firefox plugin, and it works. As for the latter, I've started it without problem.
Try this page, for configuring Sun Java on your system, and then try installing NetBeans:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.