计算机与eclipse使用下技巧

//计算机小技巧, on windows。
shutdown.exe:control when or how to shut down the computer.
the exe in the foder:
C:\WINDOWS\system32
in cmd you can input the command :shutdown /? for some help information.
you can use shutdown -s -t 10.
the meaning is that you will shut down the computer 10s later.
 
//2013-2-21
eclipse  中class关联源文件的方法。
下载JDK源代码(Oracle官网找或者搜一下,到处都有),一般会打成zip包做下载,JDK安装目录里也有:
Java\jdk1.6.0_30\src.zip
可使用以下几种方式将class文件与源文件进行关联:
(1) 如果你没有进行关联过,可以在Editor中写下如下的语句: String str = null; 然后按住Ctrl键, 
用鼠标左键点击"String", 就会弹出 Class File Editor 的界面让你关联源文件, 点击界面上的"Attach Source..."
按钮, 在弹出的"Source Attachment Configuration"界面中, 点击"External File", 选择你下载的源文件zip包,
一路OK即可; 
(2) 在项目中找到 JRE System Library,定位到如下: JRE System Library -> rt.jar -> java->lang->String.class 
双击String.class,即弹出关联源文件的界面; 
(3) 在项目中找到 JRE System Library, 定位到 rt.jar, 鼠标右键点击,在弹出的界面中选择"Properties...",
在弹出的界面中,左边默认会选中"Java Source Attachment", 在右边进行源文件的关联; 
(4) Window->Preferences->Java->Installed JREs 在右边的"Installed JREs:"窗口中选中所使用的JRE, 
点击其右边的"Edit",在弹出的"Edit JRE"窗口中, 有一个"JRE system libraries:"列表, 在其中找到 
"...jdk1.6.0_13\jre\lib\rt.jar" 并选中, 点击右边的"Source Attachment...", 在弹出的
"Source Attachment Configuration"界面中, 点击文本框右边的"External File", 选择你下载的源文件zip包,
一路OK即可;
//2013-2-20
eclipse中引入jar包:
1.在project exploer中右键->build path->config build path->libraries->add external jars.
2.相应工程->project->点击properties->libraries->add external jars.
原文地址:https://www.cnblogs.com/accipiter/p/2921149.html