When viewing JDK sources: "Failed to get sources. Instead, stub sources are generated" #425
-
Is anyone able to view the source for a JDK library, for example,
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I needed to install the JDK sources:
Somewhat embarrassing :). As usual, the software is never broken when you start a Github issue. Apparently the JDK stores its sources in For reference, here is all my configuration after I got (mostly) everything working on Debian 11. Shell environment (
Configuration for
|
Beta Was this translation helpful? Give feedback.
I needed to install the JDK sources:
Somewhat embarrassing :). As usual, the software is never broken when you start a Github issue.
Apparently the JDK stores its sources in
$JAVA_HOME/lib/src.zip
. If that file is missing, or if it is a broken symlink, then that is probably why you don't see JDK sources.For reference, here is all my configuration after I got (mostly) everything working on Debian 11.
Shell environment (
.zshrc
,.bashrc
or whatever you have).