在网上看到好多人说MyEclipse使用代码提示时出现假死状况,我在使用的过程中也出现了。
花了几个小时的时候就解决了这个问题,下面把经验拿出来和大家分享。
前提是需要下载两个文件,J2SE的DOC和J2EE的DOC
1、Windows->Preference->Installed JRES
选中新添加的JDK6
Edit->.../rt.jar
将其Java Doc Location改变为硬盘上的DOC压缩包或文件夹路径
![1](https://p-blog.csdn.net/images/p_blog_csdn_net/agate62/EntryImages/20090624/1633814570640353750.jpg)
![2](https://p-blog.csdn.net/images/p_blog_csdn_net/agate62/EntryImages/20090624/2633814570641447500.jpg)
![](https://p-blog.csdn.net/images/p_blog_csdn_net/agate62/EntryImages/20090624/3633814570642228750.jpg)
2、对于J2EE项目,右击项目名称->Build Path->Configure Build Path
在Library标签中选择Libraries选项卡,选择Java EE 5 Libraries
其下有四个jar包,分别打开每个Jar包的加号,对Javadoc Location进行修改,改为本地路径的doc文件夹
![4](https://p-blog.csdn.net/images/p_blog_csdn_net/agate62/EntryImages/20090624/4633814570642853750.jpg)
![5](https://p-blog.csdn.net/images/p_blog_csdn_net/agate62/EntryImages/20090624/5633814570643791250.jpg)
![6](https://p-blog.csdn.net/images/p_blog_csdn_net/agate62/EntryImages/20090624/6633814570644885000.jpg)
3、另外的补救办法,修改MyEclipse文件夹下myeclipse.ini,将其中的
-Xmx -XX:MaxPermSize两项改为较大值,我的结果是(使用MyEclipse7):
-startup
Common/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
--launcher.library
Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731
-clean
-configuration
configuration
-vm
D:/MyEclipse7.1/Common/binary/com.sun.java.jre.win32.x86_1.5.0.011/bin/client/jvm.dll
-vmargs
-Xmx600M
-XX:MaxPermSize=600M
Common/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
--launcher.library
Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731
-clean
-configuration
configuration
-vm
D:/MyEclipse7.1/Common/binary/com.sun.java.jre.win32.x86_1.5.0.011/bin/client/jvm.dll
-vmargs
-Xmx600M
-XX:MaxPermSize=600M
![7](https://p-blog.csdn.net/images/p_blog_csdn_net/agate62/EntryImages/20090624/7633814570645510000.jpg)
![8](https://p-blog.csdn.net/images/p_blog_csdn_net/agate62/EntryImages/20090624/8633814570645822500.jpg)
J2EE5API的下载链接为:
http://download.csdn.net/source/1434137