Eclipse启动异常(ChooseWorkspaceData.writePersistedData中的java.lang.ArrayIndexOutOfBoundsException) [英] Eclipse startup exception (java.lang.ArrayIndexOutOfBoundsException in ChooseWorkspaceData.writePersistedData)

查看:156
本文介绍了Eclipse启动异常(ChooseWorkspaceData.writePersistedData中的java.lang.ArrayIndexOutOfBoundsException)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只需安装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常量:OS = win32,ARCH = x86_64,WS = win32,NL = en_IN
命令行参数:-os win32 -ws win32 -arch x86_64

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

我的配置:

 #这个配置文件是由:org.eclipse.equi编写没有了。 $ b 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 

它会正常工作


Just installed eclipse 3.8, it gives me a exception everytime i select a workspace. I tried clearing the metadata directory but still no use. I am new to eclipse and dont understand much of its configurations.

!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)

My config:

#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

解决方案

Goto Eclipse Folder and Try deleting

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

It Will work fine

这篇关于Eclipse启动异常(ChooseWorkspaceData.writePersistedData中的java.lang.ArrayIndexOutOfBoundsException)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆