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 the 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 located):
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 enter the path of the file src.zip generated in the previous step
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3