AdoptiumJDK does not have source code files built into its installer and if you need to check how to use any native JDK method through the Eclipse IDE, it will not be possible.
Follow the steps to load the source code in Eclipse IDE:
Access the official AdoptiumJDK website and filter by the desired JDK version, in my case it was 11.0.24+8
Download the source code by clicking on "Source Code"
Unzip the downloaded file:
tar -zxvf OpenJDK11U-jdk-sources_11.0.24_8.tar.gz
Compress only the directory referring to the JDK source code files (it took me a while to discover that this was where the source files were):
zip -r src.zip jdk-11.0.24+8-src/src/java.base/share/classes/*
Import into Eclipse IDE
Window > Preferences > Java > installed JRE > select JRE > Edit... > Source Attachment... > External Location and finally inform the path of the file src.zip generated in the previous step
The above is the detailed content of Loading AdoptiumJDK source code into Eclipse IDE. For more information, please follow other related articles on the PHP Chinese website!