LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-08-2006, 06:34 AM   #1
Panagiotis_IOA
Member
 
Registered: Jan 2006
Location: Hellas, Europe
Distribution: Slackware 12
Posts: 238

Rep: Reputation: 32
Problem with JAVA installation


I have just downloaded JRE 5 6th update and JDK 5 6th update but when I'm trying to install them I get the error message bellow for missing files:
Quote:
error: Failed dependencies:
glibc >= 2.1.2-11 is needed by jdk-1.5.0_06-fcs
sh-utils >= 2.0-1 is needed by jdk-1.5.0_06-fcs
fileutils >= 4.0-8 is needed by jdk-1.5.0_06-fcs
gawk >= 3.0.4-1 is needed by jdk-1.5.0_06-fcs
textutils >= 2.0-2 is needed by jdk-1.5.0_06-fcs
/bin/sh is needed by jdk-1.5.0_06-fcs

I had a look over the system and I realized that I have newer versions of that files. Any idea what is going on?
 
Old 02-08-2006, 07:41 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Provide more details about the which file exactly you downloaded and the steps you took to install the package.If you are using Slack, I am sure it includes jre on the discs or you could intall it using swaret or slapt-get.
 
Old 02-08-2006, 08:07 AM   #3
Panagiotis_IOA
Member
 
Registered: Jan 2006
Location: Hellas, Europe
Distribution: Slackware 12
Posts: 238

Original Poster
Rep: Reputation: 32
I've downloaded:

jdk-1_5_0_06-linux-i586-rpm.bin

jre-1_5_0_06-linux-i586-rpm.bin

From Sun's site the first and from Java.com the second. The method I follow is the one described here and I tried the same for both files:

http://java.com/en/download/help/5000010500.xml#rpm


Slackware includes Java 2 package and I thought it would be fine but when I visited a page with Java applet it didn't run as was missing JRE. Although, the compiler works fine but I'd like to install the updated one.
 
Old 02-08-2006, 08:52 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Ok, your problem here is that you are trying to install the jre rpm. For Slack and other non rpm based distros, use the self extracting bin file and not the rpm.bin file. Also for Firefox to recognise the java plugin, you need to create a symlink to the plugin in your firfox plugins directory e.g.
Code:
#ln -s /path/to/java/jre/plugin/i386/ns7/libjavaplugin_oji.so /path/to/firefox/plugins/.
 
Old 02-08-2006, 10:01 AM   #5
Panagiotis_IOA
Member
 
Registered: Jan 2006
Location: Hellas, Europe
Distribution: Slackware 12
Posts: 238

Original Poster
Rep: Reputation: 32
Thanks a lot! Now words fine
 
Old 02-08-2006, 10:25 AM   #6
Panagiotis_IOA
Member
 
Registered: Jan 2006
Location: Hellas, Europe
Distribution: Slackware 12
Posts: 238

Original Poster
Rep: Reputation: 32
I just installed and the JDK but first unistalled the previous one and now the system doesn't find the Java path. From where can I set the path and making default Java directory the one I installed the new JDK?

Thanks in advance!
 
Old 02-08-2006, 04:29 PM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Copy the scipt below to /etc/profile.d. Call it something like sunjdk.sh and make it executable. Edit the paths so that they are the same as those of your java installation. Log out, then login again and java will be in your path.
Code:
#!/bin/sh
export JAVA_HOME=/usr/java/jdk1.5.0_06
export MANPATH="$MANPATH:/usr/java/jdk1.5.0_06/man"
export PATH="$PATH:/usr/java/jdk1.5.0_06/bin:/usr/java/jdk1.5.0_06/jre/bin"
 
Old 02-09-2006, 07:19 AM   #8
Panagiotis_IOA
Member
 
Registered: Jan 2006
Location: Hellas, Europe
Distribution: Slackware 12
Posts: 238

Original Poster
Rep: Reputation: 32
Ok, now it worked! Thanks! I had also to change the JRE PATH on the files of /etc/profile.d
 
  


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
java installation problem franklampard Linux - Software 2 09-27-2005 01:53 AM
Java installation problem MathewScott Linux - Software 1 03-18-2005 11:34 AM
Java installation problem fhleung Linux - General 3 10-03-2004 12:30 PM
Java VM installation problem reefadt Linux - Newbie 7 08-16-2003 08:24 PM
java installation problem... Zerodark Linux - Software 7 03-12-2003 02:51 AM

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

All times are GMT -5. The time now is 09:00 AM.

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