今天不想删掉原来的Eclipse,只想尝试一下再解压一个eclipse,然后运行,选择另外一个Workspace尝试下,刚开始不能启动,会出现一个错误的提示框。
查看.log日志,里面写道: !ENTRY org.eclipse.osgi 4 0 2007-10-22 11:26:04.137
!MESSAGE An error occurred while automatically activating bundle org.eclipse.core.runtime.compatibility (25).
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.core.internal.plugins.CompatibilityActivator.start() of bundle org.eclipse.core.runtime.compatibility. .......
猜想是否与原来安装的TOMCAT的带有联系呢,在系统变量里把这些与Tomcat有关的变量都删除了,并且把一些路径中相关的设置也删除了,打开eclipse,仍然不行。
后来,查阅资料,在命令行中,尝试了以下方法:
命令行中, 进入eclipse的安装文件夹,然后输入:
查看.log日志,里面写道: !ENTRY org.eclipse.osgi 4 0 2007-10-22 11:26:04.137
!MESSAGE An error occurred while automatically activating bundle org.eclipse.core.runtime.compatibility (25).
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.core.internal.plugins.CompatibilityActivator.start() of bundle org.eclipse.core.runtime.compatibility. .......
猜想是否与原来安装的TOMCAT的带有联系呢,在系统变量里把这些与Tomcat有关的变量都删除了,并且把一些路径中相关的设置也删除了,打开eclipse,仍然不行。
后来,查阅资料,在命令行中,尝试了以下方法:
命令行中, 进入eclipse的安装文件夹,然后输入:
eclipse.exe -clean -nosplash -showLocation -vm C:/java/jdk1.5.0_03/bin/javaw.exe
-vmargs -Xms128m -Xmx512m -XX:MaxPermSize=128m -Duser.language=en
红色部分是你所安装的JDK的路径。
下面解释下上面参数的意义:
-clean: 是清除plug-ins的注册信息,其实直接在configuaration文件夹下删除掉除了config.ini和
.setting文件夹之外的所有文件夹,是一样的。
-nosplash: 是在启动eclipse时,不显示那个启动的进度条,而是直接进入eclipse
-showLocation: 就是把工作区间的完整路径也显示在IDE的标题处
Please understand that these values are only examples-
in this case for a very beefy developer machine. Eclipse 3.2 uses a lot
less memory than 3.1, so you most likely need a lot less VM heap
memory than -Xmx512m.