You are not logged in.
Pages: 1
Hi everyone,
Today I've tried to launch eclipse and I noticed this strange error :
[^81%][11:12][cafe][~]$ eclipse
/usr/bin/java: line 2: /usr/lib/jvm/default/bin/java: Too many levels of symbolic links
/usr/bin/java: line 2: exec: /usr/lib/jvm/default/bin/java: cannot execute: Too many levels of symbolic links
Inspecting the /usr/lib/jvm folder revealed the issue:
[^82%][11:14][cafe][~]$ cd /usr/lib/jvm
[^82%][11:15][cafe][jvm]$ ls -lhA
total 4.0K
lrwxrwxrwx 1 root root 7 Sep 5 11:12 default -> default
lrwxrwxrwx 1 root root 11 Sep 4 16:44 default-runtime -> default/jre
drwxr-xr-x 3 root root 4.0K Jul 3 16:02 java-7-openjdk
lrwxrwxrwx 1 root root 7 Sep 4 16:44 java-default-runtime -> default
So I've just removed the default symbolic link and replaced with :
[^82%][11:15][cafe][jvm]$ sudo rm default
[^84%][11:16][cafe][jvm]$ sudo ln -s java-7-openjdk/jre default
[^84%][11:17][cafe][jvm]$ ls -lhA
total 4.0K
lrwxrwxrwx 1 root root 18 Sep 5 11:17 default -> java-7-openjdk/jre
lrwxrwxrwx 1 root root 11 Sep 4 16:44 default-runtime -> default/jre
drwxr-xr-x 3 root root 4.0K Jul 3 16:02 java-7-openjdk
lrwxrwxrwx 1 root root 7 Sep 4 16:44 java-default-runtime -> default
and now eclipse launches without any issues.
So I ask, is this the correct behavior? and..
Why do we have so many symbolic links in this folder?
Cheers,
Offline
Offline
Pages: 1