Eclipse启动报错java.lang.NoClassDefFoundError

本文介绍了Eclipse在启动过程中出现的NoClassDefFoundError错误及其解决方案。错误与org.eclipse.jface.preference.PreferenceConverter类有关,通过删除workspace下的特定文件夹后问题得到解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在启动的时候,报错:


!ENTRY org.eclipse.osgi 4 0 2014-02-23 15:11:58.914
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jface.preference.PreferenceConverter
	at org.eclipse.ui.internal.themes.ThemeElementHelper.installFont(ThemeElementHelper.java:103)
	at org.eclipse.ui.internal.themes.ThemeElementHelper.populateRegistry(ThemeElementHelper.java:59)
	at org.eclipse.ui.internal.Workbench$27.runWithException(Workbench.java:1553)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2523)
	at org.eclipse.ui.internal.Workbench.access$7(Workbench.java:2431)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:586)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
	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(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:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

在csdn中到有文章: http://blog.youkuaiyun.com/lisa0220/article/details/8676228 把: workspace/.metadata/.plugins/org.eclipse.core.resources/.snap 删除后再启动即可。

引用\[1\]中提到的异常是在启动SpringBoot项目时报错,错误信息为"Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/core/metrics/ApplicationStartup"。引用\[2\]和引用\[3\]提供了一些解决该异常的方法。 根据引用\[2\]中的解决方法,可能是由于程序中导入的包错误导致的。可以尝试找到对应方法的包进行更改。另外,也可能是缺少某些依赖或者jar包不全导致的。可以尝试清空缓存,重新下载jar包,或者使用maven进行更新项目。 根据引用\[3\]中的解决措施,该异常可能是由于pom.xml文件中的版本问题引起的。可以打开pom.xml文件,找到parent标签下的版本号,尝试更改为正确的版本号。 综上所述,解决该异常的方法包括检查导入的包是否正确、清空缓存重新下载jar包、使用maven更新项目、检查pom.xml文件中的版本号是否正确。希望这些方法能够帮助您解决该异常。 #### 引用[.reference_title] - *1* [报错:springboot项目启动,Exception in thread “main“ java.lang.NoClassDefFoundError: org/spring...](https://blog.csdn.net/T150761/article/details/129719385)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [java程序在eclipse上运行报错解决方法:Exception in thread “main“ java.lang.NoClassDefFoundError:](https://blog.csdn.net/lz6363/article/details/82561292)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [报错:SpringBoot项目启动时报Exception in thread “main“ java.lang.NoClassDefFoundError: org/spring...](https://blog.csdn.net/weixin_44831239/article/details/123283825)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值