-
Eclipse项目出现红叉
在problem选项卡中查看错误原因-
常见原因:
I.Target runtime com.genuitec.runtime.generic.jee50 is not defined.
进入项目目录,找到.setting 目录下的org.eclipse.wst.common.project.facet.core.xml文件,将包含runtime com.genuitec.runtime.generic.jee50的标签删除即可
-
rg.eclipse.recommenders.completion.rcp.javaCompletionProposalComputer.intelligent proposal computer from the org.eclipse.recommenders.completion.rcp plug-in did not complete normally
1、点击报错的那个连接
(Window -> preferences -> java -> Editor -> Content Assist -> Advanced)
。
2、再打开的配置了面将Default Proposal Kinds
栏中Java Proposals (Code Recommenders)
前面的对勾去掉就可以了。
3、生效后,我的就没有提示,然后又将剩余的两个Java Proposals
、Java Proposals(Task-Focused)
打上对勾才正常。
-
-
制作eclipse启动计时插件:
-
建立Plugin in Project
-
建立ShowTime类
package eclipse.starttime; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.IStartup; public class ShowTime implements IStartup{ public void earlyStartup(){ Display.getDefault().syncExec(new Runnable(){ public void run(){ long eclipseStartTime=Long.parseLong(System.getProperty("eclipse.startTime")); long costTime=System.currentTimeMillis()-eclipseStartTime; Shell shell=Display.getDefault().getActiveShell(); String message="Eclipse 启动时间:"+costTime+"ms"; MessageDialog.openInformation(shell,"Information",message); } }); } }
-
重写plugin.xml
<?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.4"?> <plugin> <extension point="org.eclipse.ui.startup"> <startup class="eclipse.starttime.ShowTime"/> </extension> </plugin>
导出该插件,放进eclipse的plugins文件夹中
最重要的是进入eclipse的 configuration文件夹下 删除 org.eclipse.update文件夹(重新加载所有插件),这样才会使该插件生效。 -
-
eclipse调试
通过visualVM调试时,发现启动时间绝大多数花费在编译和类加载上,可能是因为加载了太多插件,而这两个方面很难有调优的办法,因此只调大了堆的最大最小内存、禁止了显性GC、禁止了字节码检校、加大了编译线程数量,在加大了堆的内存天花板和编译线程数量后,启动时间确实加快了,不过就很难有进一步的调优手段了。
eclipse问题集
猜你喜欢
转载自blog.csdn.net/weixin_38927996/article/details/88344229
今日推荐
周排行