How attach Java source(为eclipseIDE附加资源)
2024-10-21 11:59:59
In Eclipse, when you press Ctrl button and click on any Class names, the IDE will take you to the source file for that class. This is the normal behavior for the classes you have in your project.
But, in case you want the same behavior for Java’s core classes too, you can have it by attaching the Java source with the Eclipse IDE. Once you attach the source, thereafter when you Ctrl+Click any Java class names (String for example), Eclipse will open the source code of that class.
To attach the Java source code with Eclipse,
- When you install the JDK, you must have selected the option to install the Java source files too. This will copy the src.zip file in the installation directory.
- In Eclipse, go to Window -> Preferences -> Java -> Installed JREs -> Add and choose the JDK you have in your system.
- Eclipse will now list the JARs found in the dialog box. There, select the rt.jar and choose Source Attachment. By default, this will be pointing to the correct src.zip. If not, choose the src.zip file which you have in your java installation directory.
- Similarly, if you have the javadoc downloaded in your machine, you can configure that too in this dialog box实际上就是将src.jar 这个包附加
最新文章
- article和section
- 【poj2699】 The Maximum Number of Strong Kings
- a little about hashtable vs dictionary
- 记一次hadoop datanode进程问题分析
- CentOS下安装setuptools、pip和virtualenv
- java生成带html样式的word文件
- SQLserver行转列与列转行
- .net程序员必须知道的知识
- sql like 通配符 模糊查询技巧及特殊字符
- centos7 设备 mariadb-10
- 双链表---LinkedList的重写
- Discuz 楼主帖子采集
- 字体类形:font-family, font-style
- extremecomponents
- zabbix回顾
- 从URL输入到页面展现到底发生什么
- 自建yum源解决Ceph搭建过程中从官网取包慢的问题
- 关于OSG+QT+VS版本的问题
- Edraw安装图解
- ARM ® and Thumb ®-2 指令系统