LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 06-29-2007, 03:30 AM   #1
RoughEdge
Member
 
Registered: Jan 2004
Location: Scotland
Distribution: Slackware 12
Posts: 67

Rep: Reputation: 15
Sun JDK 6 and Fedora 7 problems


Hi all,

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

Code:
./netbeans* -is:javahome /home/ozone/java/jdk1.6.0_01/
and I am still getting the same error.

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.
 
Old 06-29-2007, 08:50 AM   #2
hans21
Member
 
Registered: Sep 2005
Location: Serbia
Distribution: Centos 5.2-x86_64, Fedora 10, RHEL 5
Posts: 60

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

There are 2 programs which provide 'java'.

Selection Command
-----------------------------------------------
* 1 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
+ 2 /usr/java/jdk1.6.0_01/bin/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.

You'll hear from me soon.

Last edited by hans21; 06-29-2007 at 08:51 AM.
 
Old 06-29-2007, 09:49 AM   #3
hans21
Member
 
Registered: Sep 2005
Location: Serbia
Distribution: Centos 5.2-x86_64, Fedora 10, RHEL 5
Posts: 60

Rep: Reputation: 15
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.
 
Old 06-29-2007, 12:50 PM   #4
hans21
Member
 
Registered: Sep 2005
Location: Serbia
Distribution: Centos 5.2-x86_64, Fedora 10, RHEL 5
Posts: 60

Rep: Reputation: 15
I've installed

jdk-1_5_0_12-nb-5_5_1-linux-ml.bin

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:

http://stanton-finley.net/fedora_cor...ion_notes.html

pay no attention to the page title... Search for the section specifically regarding Java.

I'll try later and see if it'll allow me to install Limewire with this JRE as default.
 
Old 06-30-2007, 11:59 AM   #5
RoughEdge
Member
 
Registered: Jan 2004
Location: Scotland
Distribution: Slackware 12
Posts: 67

Original Poster
Rep: Reputation: 15
Sorry been away from my box for the last couple of days. Will try things tonight and get back to you.

Thanks for the insight
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem installing SUN JDK 1.5.10 eerpini Linux - Software 5 07-25-2007 07:20 AM
Installing Sun JDK naiveguy Linux - General 2 04-17-2006 02:15 PM
installing Sun JDK in FC5 fakie_flip Linux - Software 1 04-14-2006 05:28 PM
How to run Sun JDK 1.5 without conflict from libgcj? rhimbo Linux - Software 1 12-08-2004 06:37 PM
Sun jdk 1.4.1 crashes on compilation juby Programming 1 06-28-2003 05:36 AM


All times are GMT -5. The time now is 06:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration