1.加载jar包
右键你的工程目录,最后一项属性Properties,第三项Java Build Path,右边选项卡第三项Libraries,然后Add JARS 或者Add External JARS,之后你就懂了
2. Eclipse 代码提示功能失效问题解决
Windows->preferences->java->Editor->Code Assist中Auto-Activetion中的Enable auto-activetion选项要勾选上,这里面有个时间的设定是为提示代码设定的显示时间。你可以根据自己的情况设定。
Window->Preferences->Java->Editor->Content Assist->Advanced 上面的选项卡Select the proposal kinds contained in the ‘default’ content assist list: 中把 Other Java Proposals 选项打上勾就可以了。
将Window->Preferences->Java->Editor->Content Assist 中的 Auto activation triggers for Java 里面的"."换成".abcdefghijklmnopqrstuvwxyz"