Symbolic link to src.zip in openjdk-11-source points to an invalid location

Bug #1791219 reported by Jared Engler
62
This bug affects 13 people
Affects Status Importance Assigned to Milestone
openjdk-lts (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

After installing all relevant open jdk 11 packages, (sudo apt install openjdk-11-*) navigate to /usr/lib/jvm/java-11-openjdk-amd64, the symbolic link to src.zip in ../openjdk-11/src.zip will be invalid. This should point to ../openjdk-11/lib/src.zip, or src.zip should be moved up one directory and ./lib should be deleted.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openjdk-lts (Ubuntu):
status: New → Confirmed
tags: added: bionic
Changed in openjdk-lts (Ubuntu):
importance: Undecided → Medium
Revision history for this message
matihost (matihost) wrote :

Workaround:
```
cd /usr/lib/jvm/java-11-openjdk-amd64
sudo rm src.zip
sudo ln -s ../openjdk-11/lib/src.zip src.zip
```

Revision history for this message
matihost (matihost) wrote :

Workaround taken from https://github.com/redhat-developer/vscode-java/issues/689#issuecomment-434046529 (solves issue under VSCode unable to show Java JDK source code)

Revision history for this message
Anton Keks (anton-azib) wrote :

openjdk-11-source package is completely useless currently.
Please fix the symbolic link, that's really easy to do!

Revision history for this message
Miroslav Zaťko (mirec-z) wrote :

the same bug in openjdk-10 and openjdk-12

Revision history for this message
Dell Green (dell-green) wrote :

still present on disco-dingo

tags: added: disco
Revision history for this message
Alejandro Torras (atorras) wrote :

Hi,

Sun/Oracle always deployed src.zip in the root of their jdk directories, so the problem here is with openjdk-*-source package, so IMHO:

1. openjdk-lts package should be left as it's (the src.zip symlink is coherent).
2. lib/src.zip file from openjdk-*-source package should be moved from lib/ to the parent directory.

Regards,

Revision history for this message
Alejandro Torras (atorras) wrote :

Workaround 2 (alternative for #2):
```
cd /usr/lib/jvm/openjdk-*/lib
sudo bash -c 'mv src.zip ..; ln -s ../src.zip src.zip'
```

Revision history for this message
Vladimir Petko (vpa1977) wrote :

Current state:
src.zip installed in /usr/lib/jvm/openjdk-11/lib.
src.zip symlink is created in /usr/lib/jvm/openjdk-11/

Vladimir Petko (vpa1977)
tags: added: reviewed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.