[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

installing J2SE SDK 1.4.2 on testing

I'm having a problem getting Sun's J2SE 1.4.2 SDK installed on an updated testing.

I am attempting to follow the Java FAQ:


However, when I get to the final step, doing a test run of java does not work:

# java -v
bash: java: command not found

So I investigate:

# echo $PATH

# ls -ld /usr/bin/java
lrwxrwxrwx 1 root root 22 Apr 30 23:12 /usr/bin/java -> /etc/alternatives/java

# ls -ld /etc/alternatives/java
lrwxrwxrwx 1 root root 27 Apr 30 23:12 /etc/alternatives/java -> /usr/local/lib/jdk/bin/java

# ls -ld /usr/local/lib/jdk/bin/java
ls: /usr/local/lib/jdk/bin/java: No such file or directory


# ls -ld /usr/local/lib/jdk
lrwxrwxrwx 1 root staff 28 Apr 30 22:51 /usr/local/lib/jdk -> /usr/local/lib/j2sdk1_4_1_02


# ls -ld /usr/local/lib/j2sdk1.4.2_04/bin/java
-rwxrwxr-x 1 haricothoriz www-data 24596 Feb 24 10:25 /usr/local/lib/j2sdk1.4.2_04/bin/java

What's going wrong here?

Kevin Murphy

Reply to: