eclipse启动错误,如何解决
!ENTRYorg.eclipse.osgi402017-10-1016:51:43.250!MESSAGEApplicationerror!STACK1java.lan...
!ENTRY org.eclipse.osgi 4 0 2017-10-10 16:51:43.250
!MESSAGE Application error
!STACK 1
java.lang.ArrayIndexOutOfBoundsException: 0
at org.eclipse.ui.internal.ide.ChooseWorkspaceData.writePersistedData(ChooseWorkspaceData.java:226)
at org.eclipse.ui.internal.ide.application.IDEApplication.checkInstanceLocation(IDEApplication.java:275)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:128)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
G:\TTTS9软件安装\tts9\eclipse\configuration\.settings把此文件夹下的org.eclipse.ui.ide.prefs删除再启动。eclipse会自动补充完整,此问题Ok啦 展开
!MESSAGE Application error
!STACK 1
java.lang.ArrayIndexOutOfBoundsException: 0
at org.eclipse.ui.internal.ide.ChooseWorkspaceData.writePersistedData(ChooseWorkspaceData.java:226)
at org.eclipse.ui.internal.ide.application.IDEApplication.checkInstanceLocation(IDEApplication.java:275)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:128)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
G:\TTTS9软件安装\tts9\eclipse\configuration\.settings把此文件夹下的org.eclipse.ui.ide.prefs删除再启动。eclipse会自动补充完整,此问题Ok啦 展开
展开全部
应该是加载java虚拟机出的错,因为eclipse实际上是一个java程序,运行时需要指定java虚拟机.
解决方案:
Eclipse的JVM启动的时候找JRE的顺序:如果eclipse.ini中配置了-vm参数,那么则使用这个参数指定的JRE;否则就去查看 eclipse安装目录下是否有JRE文件夹,如果有的话就使用这个JRE;否则的话就去系统中查找安装的JRE,如果还找不到的话就报错。
对于jre不是安装在eclipse的安装目录下的情况(假设JDK安装路径为G:/csmn/java/jdks/1.6.0_24/jdk1.6.0_24/bin),可以有两种方法(其实本质一样)可以指定:
1、运行eclipse时使用命令参数-vm指定JVM,如./eclipse -vm G:/csmn/java/jdks/1.6.0_24/jdk1.6.0_24/bin;
2、第1种做法相对比较麻烦,每次运行都得带参数,有个一劳永逸的办法就是把-vm参数加到eclipse的初始化文件eclipse.ini。要特别注意采用这种方法是-vm和后面的/usr/java/jre1.7.0_06/bin/java要分两行,不然运行不成功。
未加入之前eclipse.ini为:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813 -showsplash
org.eclipse.platform
--launcher.XXMaxPermSize 256m
--launcher.defaultAction
openFile -vmargs -Xms40m -Xmx512m
加入-vm之后为:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813 -showsplash
org.eclipse.platform --launcher.XXMaxPermSize 256m
--launcher.defaultAction
openFile -vm
G:/csmn/java/jdks/1.6.0_24/jdk1.6.0_24/bin -vmargs -Xms40m -Xmx512m
这样再次启动eclipse就不会出现之前的问题了。
解决方案:
Eclipse的JVM启动的时候找JRE的顺序:如果eclipse.ini中配置了-vm参数,那么则使用这个参数指定的JRE;否则就去查看 eclipse安装目录下是否有JRE文件夹,如果有的话就使用这个JRE;否则的话就去系统中查找安装的JRE,如果还找不到的话就报错。
对于jre不是安装在eclipse的安装目录下的情况(假设JDK安装路径为G:/csmn/java/jdks/1.6.0_24/jdk1.6.0_24/bin),可以有两种方法(其实本质一样)可以指定:
1、运行eclipse时使用命令参数-vm指定JVM,如./eclipse -vm G:/csmn/java/jdks/1.6.0_24/jdk1.6.0_24/bin;
2、第1种做法相对比较麻烦,每次运行都得带参数,有个一劳永逸的办法就是把-vm参数加到eclipse的初始化文件eclipse.ini。要特别注意采用这种方法是-vm和后面的/usr/java/jre1.7.0_06/bin/java要分两行,不然运行不成功。
未加入之前eclipse.ini为:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813 -showsplash
org.eclipse.platform
--launcher.XXMaxPermSize 256m
--launcher.defaultAction
openFile -vmargs -Xms40m -Xmx512m
加入-vm之后为:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813 -showsplash
org.eclipse.platform --launcher.XXMaxPermSize 256m
--launcher.defaultAction
openFile -vm
G:/csmn/java/jdks/1.6.0_24/jdk1.6.0_24/bin -vmargs -Xms40m -Xmx512m
这样再次启动eclipse就不会出现之前的问题了。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询