Author Topic: Installing JDK 1.5.0 06  (Read 4509 times)

0 Members and 1 Guest are viewing this topic.

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Installing JDK 1.5.0 06
« on: April 30, 2006, 05:17:36 pm »
Grr.
Code: [Select]
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?

Offline Ergot

  • 吴立峰 ^_^ !
  • x86
  • Hero Member
  • *****
  • Posts: 3724
  • I steal bandwidth. p_o
    • View Profile
Re: Installing JDK 1.5.0 06
« Reply #1 on: April 30, 2006, 06:15:15 pm »
Don't get the rpm then? There's a slackware package for it in Extras. Umm it's probably still showing 1.5.0 04 because that RPM is putting it somewhere where you $PATH doesn't point.
Who gives a damn? I fuck sheep all the time.
And yes, male both ends.  There are a couple lesbians that need a two-ended dildo...My router just refuses to wear a strap-on.
(05:55:03) JoE ThE oDD: omfg good job i got a boner thinkin bout them chinese bitches
(17:54:15) Sidoh: I love cosmetology

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: Installing JDK 1.5.0 06
« Reply #2 on: April 30, 2006, 06:25:15 pm »
Is Extras a section on java.sun.com?  If so, I can't find it...

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Installing JDK 1.5.0 06
« Reply #3 on: April 30, 2006, 06:35:13 pm »
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. 

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: Installing JDK 1.5.0 06
« Reply #4 on: April 30, 2006, 06:53:40 pm »
PLEH!!
Code: [Select]
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

Evil.

[edit]
Yay, your solution works.  Thanks.
« Last Edit: April 30, 2006, 07:03:01 pm by rabbit »

Offline Ergot

  • 吴立峰 ^_^ !
  • x86
  • Hero Member
  • *****
  • Posts: 3724
  • I steal bandwidth. p_o
    • View Profile
Who gives a damn? I fuck sheep all the time.
And yes, male both ends.  There are a couple lesbians that need a two-ended dildo...My router just refuses to wear a strap-on.
(05:55:03) JoE ThE oDD: omfg good job i got a boner thinkin bout them chinese bitches
(17:54:15) Sidoh: I love cosmetology