[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:

http://www.debian.org/doc/manuals/debian-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
/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin

# 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

*BUT*

# 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

*AND*

# 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?

Thanks,
Kevin Murphy



Reply to: