Skip to content

/usr/bin/java: line 2: /usr/lib/jvm/default/bin/java: Too many levels of symbolic links - arch linux

So you just want to start a java application and it does not work.
First idea "lets start it from within a shell to see something", so you do.

/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

If something like above is your output, change into root mode and fix this issue.


sudo su
cd /usr/lib/jvm
ls -halt
# something like "default -> default" should be listed
rm -fr default
# if you have installed java-7-openjdk, what should be listed by the ls above
ln -s java-7-openjdk default

And thats it, enjoy your working java applications again.

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

The author does not allow comments to this entry

Add Comment

E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
To leave a comment you must approve it via e-mail, which will be sent to your address after submission.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Markdown format allowed
Form options