"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Loading AdoptiumJDK source code into Eclipse IDE

Loading AdoptiumJDK source code into Eclipse IDE

Published on 2024-11-06
Browse:652

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:

  1. Access the official AdoptiumJDK website and filter by the desired JDK version, in my case it was 11.0.24 8

  2. Download the source code by clicking on "Source Code"
    Carregando código fonte do AdoptiumJDK no Eclipse IDE

  3. Unzip the downloaded file:
    tar -zxvf OpenJDK11U-jdk-sources_11.0.24_8.tar.gz

  4. 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/*

  5. 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

Release Statement This article is reproduced at: https://dev.to/kauanmocelin/carregando-codigo-fonte-do-adoptiumjdk-no-eclipse-ide-odc?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

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