附加Java源代码1.6 [英] Attaching Java source for 1.6

查看:110
本文介绍了附加Java源代码1.6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse IDE,并希望进行调试。当我尝试进入Java代码时,我会收到一条消息Source not found。与之前版本的Java一样,我可以下载一个src.zip文件,进入已安装的JRE区域,编辑rt.jar属性,然后添加源附件。然后我可以进入Java源码。当我有src.zip的时候,这样工作正常。



是否有用于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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆