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?
/usr/lib/jvm/java-7-openjdk-amd64
src.zip
I downloaded sources from http://jdk7src.sourceforge.net/ and added them to eclilpse. Now it works great.
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.
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?