Eclipse只能成功启动一次,快疯了!
1、下载最新的Eclipse eclipse-jee-kepler-SR1-win32.zip,解压。2、能成功启动,并设置工作目录。
3、关闭eclipse,再启动,报错。 (如果删除重新启动又可以,再启动报错。求解!!)
错误日志如下:
!SESSION 2013-11-07 18:38:59.881 -----------------------------------------------
eclipse.buildId=4.3.0.M20130911-1000
java.version=1.7.0_01
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.osgi 4 0 2013-11-07 18:39:02.443
!MESSAGE An error occurred while automatically activating bundle org.eclipse.equinox.registry (332).
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.core.internal.registry.osgi.Activator.start() of bundle org.eclipse.equinox.registry.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
at ..............
Caused by: java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unknown Source)
at ...................
Root exception:
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
a......
Caused by: java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.eclipse.osgi.storagemanager.StorageManager.updateTable(StorageManager.java:512)
at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:709)
at org.eclipse.core.internal.registry.ExtensionRegistry.setFileManager(ExtensionRegistry.java:109)
at org.eclipse.core.internal.registry.ExtensionRegistry.checkCache(ExtensionRegistry.java:888)
at org.eclipse.core.internal.registry.ExtensionRegistry.<init>(ExtensionRegistry.java:673)
at org.eclipse.core.runtime.RegistryFactory.createRegistry(RegistryFactory.java:58)
at org.eclipse.core.internal.registry.osgi.Activator.startRegistry(Activator.java:137)
at org.eclipse.core.internal.registry.osgi.Activator.start(Activator.java:56)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
... 68 more
!ENTRY org.eclipse.osgi 4 0 2013-11-07 18:39:02.652
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450) --------------------编程问答-------------------- 异常日志很多,省去了大部。 --------------------编程问答-------------------- -----网上解决方案--------------------
删除configuration 下
org.eclipse.core.runtime
org.eclipse.osgi
重启eclipse
./eclipse -clean&
----------------------------------------------
我安上述方法可以把不能启动的eclipse启动,但启动后会自动添加已删除的文件夹,然后又启动不了了。 --------------------编程问答-------------------- 不可能吧。你删干净,完了换一个目录解压下来再打开试试 --------------------编程问答-------------------- 对这种状况最不纠结的做法是 换别的试试 --------------------编程问答-------------------- 换myeclipse --------------------编程问答-------------------- 在哪下载的?重新下载个看看。 --------------------编程问答-------------------- 说句实话,初学者还是myeclips比较好上手。 --------------------编程问答-------------------- 下个myeclips吧
补充:Java , Eclipse