LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-30-2006, 05:13 PM   #1
liquidrabbit
Member
 
Registered: Dec 2005
Location: New Jersey
Distribution: Slackware 10.2
Posts: 42

Rep: Reputation: 15
J2SE JDK 1.5.0-06 Install Errors


Grr.
Code:
root@Paradise:/# rpm -i jdk-1_5_0_06-linux-i586.rpm 
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
root@Paradise:/# gawk --version
GNU Awk 3.1.5
[...snip...]
I grabbed the glibc, gawk, and coreutils packages off of Slackware.com and installed them all. I'm confused...
I ran the bin, errored the same as rpm -i'ing the rpm alone. I used rpm2tgz on the rpm, and ran that. I got no error, but I still get 1.5.0_04 from java --version. Arr! Help?

Slack 10.2, kernel 2.6.16.9, if that helps.
 
Old 04-30-2006, 05:27 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337

Rep: Reputation: 65
Get the binary file instead of the rpm file from Sun's homepage. RPM's are evil(not quite, but almost ). Check this thread out:

http://www.linuxquestions.org/questi...40#post1841740

Regards!

Last edited by Mega Man X; 04-30-2006 at 05:28 PM.
 
Old 04-30-2006, 05:48 PM   #3
liquidrabbit
Member
 
Registered: Dec 2005
Location: New Jersey
Distribution: Slackware 10.2
Posts: 42

Original Poster
Rep: Reputation: 15
Exporting the path didn't work.

I tried linking, that doesn't work either. Results:
Code:
spencer@Paradise:~$ java -version
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode)
spencer@Paradise:~$ /usr/java/jdk1.5.0_06/bin/java -version
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
spencer@Paradise:~$ /usr/bin/java -version
bash: /usr/bin/java: Too many levels of symbolic links
[edit]
One of my friends got on and helped me. It worked. Solution

Quote:
Here is how I do it:

- Download the non-RPM Java package
- Extract it
- Move it to /usr/local/lib
- Make a link from /usr/local/lib/java2-1.5.7_05 (or whatever) to /usr/local/lib/java:
ln -s /usr/local/lib/java2-1.5.7_05 /usr/local/lib/java
- Make a link to the Java binaries in the bin direcotry
ln -s /usr/local/lib/java/bin/* /usr/local/bin

After that, it should work fine. If you upgrade Java, you can just re-point the link.

Last edited by liquidrabbit; 04-30-2006 at 06:04 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing J2SE 1.5.0 ivoencarnacao Slackware 2 10-03-2005 02:34 PM
SUSE 9.3, "Upgrading" to J2SE 5.0 / JDK 5.0 Metal_Rob SUSE / openSUSE 5 09-17-2005 06:49 AM
How to install J2SE on Core 1? DeepSPiN Fedora 0 02-16-2004 05:10 AM
How to install Jdk in linux... Help me :( jolly Linux - General 9 09-13-2001 01:57 PM
JDK binary file install marknyhan Linux - General 2 08-13-2001 12:38 PM

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

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