Home > Java > javaTutorial > Loading AdoptiumJDK source code into Eclipse IDE

Loading AdoptiumJDK source code into Eclipse IDE

WBOY
Release: 2024-09-04 06:44:35
Original
1000 people have browsed it

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:

  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):
    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 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!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template