附加Java源代码1.6 [英] Attaching Java source for 1.6
问题描述
是否有用于Java 1.6的src.zip?有没有人成功将1.5 src.zip附加到Eclipse的1.6 jre?
下载Java 6 JDK并安装它。将其添加到安装的JRE。将其设置为默认Java运行时。
现在调试时,应该自动附加src.zip。
(注:对于OS X上的最新Java版本,它的工作方式不同)
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)
这篇关于附加Java源代码1.6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!