Search code examples
javaeclipsejareclipse-jdt

How to get the source jar file for eclipse jdk plugins?


I'm using Eclipse Juno for RCP and RAP Developers.

enter image description here

Following vogella.com, I could import plug-ins and fragments to trace into eclipse jdt source code. However, I couldn't get the source for the method in org.eclipse.jdt.code.

enter image description here

And I found that there is no jar file with source jar file for org.eclipse.jdt.core.

enter image description here

compared to some jar files that has source jar file.

enter image description here

  • How can I get the source jar file for org.eclipse.jdt.core? Can I simply download the file? Do I need to build the jar from scratch?

Solution

  • prunge's answer helped me to find out the solution to my issue.

    I first used the method in Vogella's Eclipse Source Code - Tutorial to import org.eclipse.jdt.core into the project, and then Eli Acherkan's method to install Eclipse SDK. Only after I uninstall the eclipse source code out of my project, I can trace into the method/class in eclipse source base.