java - Eclipse启动异常(ChooseWorkspaceData.writePersistedData中的java.lang.ArrayIndexOutOfBoundsException)

标签 java eclipse indexoutofboundsexception

刚刚安装了 eclipse 3.8,每次我选择工作区时都会出现异常。 我尝试清除元数据目录但仍然没有用。 我是 eclipse 的新手,不太了解它的配置。

!SESSION 2013-09-26 11:57:16.290 -----------------------------------------------
eclipse.buildId=M20130131-0800
java.version=1.6.0_45
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_IN
Command-line arguments:  -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.osgi 4 0 2013-09-26 11:57:33.364
!MESSAGE Application error
!STACK 1
java.lang.ArrayIndexOutOfBoundsException: 0
at         org.eclipse.ui.internal.ide.ChooseWorkspaceData.writePersistedData(ChooseWorkspaceData.java:225)
at org.eclipse.ui.internal.ide.application.IDEApplication.checkInstanceLocation(IDEApplication.java:251)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

我的配置:

#This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
#Thu Jan 31 09:47:12 EST 2013
org.eclipse.update.reconcile=false
eclipse.p2.profile=SDKProfile
osgi.instance.area.default=@user.home/workspace
osgi.framework=file\:plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
equinox.use.ds=true
eclipse.buildId=M20130131-0800
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.301.v20120914-163612.jar@1\:start
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
eclipse.product=org.eclipse.sdk.ide
osgi.splashPath=platform\:/base/plugins/org.eclipse.platform
osgi.framework.extensions=
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.p2.data.area=@config.dir/../p2
osgi.bundles.defaultStartLevel=4

最佳答案

转到 Eclipse 文件夹并尝试删除

/configuration/.settings/org.eclipse.ui.ide.prefs

它会很好地工作

关于java - Eclipse启动异常(ChooseWorkspaceData.writePersistedData中的java.lang.ArrayIndexOutOfBoundsException),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19023367/

相关文章:

Java:我无法更改 JButton 的背景

java - 试图为Java(JSP)中的随机数设置范围,但我不确定如何处理

Android模拟器拒绝启动

java - 二维数组java中的Arrayindexoutofbounds

java - java中for循环中的越界异常打印小于数组列表大小

java - 心理 bean : Using OR instead of AND to load a list of beans

java - 如何检查特定日期时间是否位于相邻行日期之间?

java - 用于检查重复元素的 1 个数组的片段

eclipse - 如何在 Eclipse 中为 Team->Add 命令添加键盘快捷键

java - 突出显示 jTextField 中用户输入搜索的所有单词