简体   繁体   中英

Attaching Java source for 1.6

I am using the Eclipse IDE and would like to debug. When I try to step into the Java code, I get a message "Source not found". With previous versions of Java like 1.5, I was able to download a src.zip file, go into the "Installed JREs" area, edit the rt.jar attribute then add the "Source Attachment". Then I am able to step into Java source. This works fine when I have the src.zip.

Is there a src.zip for Java 1.6? Has anyone successfully attached 1.5 src.zip to a 1.6 jre in Eclipse?

Download the Java 6 JDK and install it. Add it to installed JRE's. Set it as default Java runtime.

When you debug now, you should have src.zip attached automatically.

(Note: It works differently for recent Java releases on OS X)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM