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

Re: installing J2SE SDK 1.4.2 on testing

Kevin Murphy wrote:

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

It seems that the problem is somewhere in these three pieces of information. I agree. Statement #1 does not seem to make sense given #2 and #3.

I have a similar scenario on the machine I am currently on. I just drop the SUN Java SDK in /usr/local. My setup works correctly and mirrors yours:

# alias ls=ls

# ls -ld /usr/local/j2sdk/bin/java
-rwxr-xr-x 1 root root 24564 Jun 20 2003 /usr/local/j2sdk/bin/java

# ls -ld /usr/local/j2sdk
lrwxrwxrwx 1 root staff 22 Sep 8 2003 /usr/local/j2sdk -> /usr/local/j2sdk1.4.2/

# ls -ld /usr/local/j2sdk1.4.2/bin/java
-rwxr-xr-x 1 root root 24564 Jun 20 2003 /usr/local/j2sdk1.4.2/bin/java

To match your situation further, I added:

# ls -ld /etc/alternatives/java
lrwxrwxrwx 1 root root 25 Apr 30 23:47 /etc/alternatives/java -> /usr/local/j2sdk/bin/java

I realize this is on the level of "which one of these things is not like the other", but honestly, I can see nothing wrong with your setup and can not duplicate the error you are receiving. What I am saying is that this may be a result of an error in one of your system libraries or kernel.

For comparison, I am using:
- kernel 2.6.5
- libc6 2.3.2.ds1-12
- ext3 filesystem

The only difference I can determine from what you have provided so far is the owner user and owner group of /usr/local/lib/j2sdk1.4.2_04/bin/java, but that should make no difference because the permissions on it are set correctly.

Perhaps if you can provide your kernel and libc versions, and the filesystem type you are using, someone with the same setup can attempt to recreate the scenario you describe.

I'm afraid that's all the better I can do.


Reply to: