Ubuntu openjdk-7 disabled link "src.zip"

enter image description here

I installed OpenJDK 7 and it works well on my Ubuntu 14.04 computer. I want to add Java sources to my Eclipse. When I go to /usr/lib/jvm/java-7-openjdk-amd64, there is a symbolic link src.zip, but it is broken. How to fix it? Do I need to manually download sources and add them?

+4
source share
3 answers

I downloaded sources from http://jdk7src.sourceforge.net/ and added them to eclilpse. Now it works great.

+1
source

You should:

sudo apt-get install openjdk-7-source

then the source code will be loaded under: "/ usr / lib / jvm / openjdk-7". Symbolic link:

src.zip -> ../openjdk-7/src.zip

should work now.

+15

This old error report says to do the following:

Please create a symbolic link to '/ usr / lib / jvm / java-7-openjdk-amd64' for '../Java-7-OpenJDK-general/src.zip'.

What does ls -al show for a symlink? What file and location is the link pointing to?

0
source

All Articles