Attach the Java Source Code

前端 未结 14 1666
傲寒
傲寒 2020-11-28 23:37

I cannot for the life of me attach the java source code to eclipse so I can see the inner workings of the language. Not even something as simple as the String Class.

14条回答
  •  借酒劲吻你
    2020-11-29 00:07

    Normally, if you have installed the JDK6u14, eclipse should detect it and declare it automatically in its "installed JRE" list.

    If not, you can add that JDK through "Windows/Preferences": Java > Installed JREs:

    Just point to the root directory of your JDK installation: it should include the sources of the JDK (src.zip), automatically detected and attached to rt.jar by eclipse.

    Add JRE VM, from pic.dhe.ibm.com/infocenter/iadthelp/v8r0/topic/org.eclipse.jdt.doc.user/tasks/images/task-add_jre_std_vm.PNG

提交回复
热议问题