点 Run As -> Java Application 不能运行,报的错误如下:
Plug-in org.eclipse.ajdt.ui was unable to load class org.eclipse.ajdt.internal.ui.ajde.CachedRuntimeClasspathEntryResolver.
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.ajdt.ui (745).
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:125)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:211)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:376)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:452)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:321)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:874)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at org.eclipse.jdt.internal.launching.RuntimeClasspathEntryResolver.getResolver(RuntimeClasspathEntryResolver.java:52)
at org.eclipse.jdt.internal.launching.RuntimeClasspathEntryResolver.resolveRuntimeClasspathEntry(RuntimeClasspathEntryResolver.java:44)
at org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:924)
at org.eclipse.jdt.launching.StandardClasspathProvider.resolveClasspath(StandardClasspathProvider.java:75)
at org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspath(JavaRuntime.java:1205)
at org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate.getClasspath(AbstractJavaLaunchConfigurationDelegate.java:417)
at org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java:71)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:866)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1069)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.osgi.framework.BundleException: The activator org.eclipse.ajdt.ui.AspectJUIPlugin for bundle org.eclipse.ajdt.ui is invalid
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:157)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:750)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:408)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
... 27 more
Caused by: java.lang.NoClassDefFoundError: org/eclipse/ajdt/core/ras/FFDC
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:152)
... 32 more
Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.ajdt.core (740).
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:125)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:211)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:376)
at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.springframework.ide.eclipse.core.java.JdtUtils.isAjdtPresent(JdtUtils.java:383)
at org.springframework.ide.eclipse.core.java.JdtUtils.<clinit>(JdtUtils.java:73)
at org.springframework.ide.eclipse.aop.core.internal.model.AopResourceChangeEvents.isSpringProject(AopResourceChangeEvents.java:33)
at org.springframework.ide.eclipse.core.internal.model.resources.SpringResourceChangeListener$SpringResourceVisitor.resourceChanged(SpringResourceChangeListener.java:216)
at org.springframework.ide.eclipse.core.internal.model.resources.SpringResourceChangeListener$SpringResourceVisitor.visit(SpringResourceChangeListener.java:143)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:68)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79)
at org.springframework.ide.eclipse.core.internal.model.resources.SpringResourceChangeListener.resourceChanged(SpringResourceChangeListener.java:75)
at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
at org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:297)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:136)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
... 1 more
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.ajdt.core.AspectJPlugin.start() of bundle org.eclipse.ajdt.core.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:805)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:408)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
... 28 more
Caused by: java.lang.NoClassDefFoundError: org/aspectj/ajde/core/ICompilerConfiguration
at org.eclipse.ajdt.core.AspectJPlugin.start(AspectJPlugin.java:131)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
... 33 more
Caused by: java.lang.ClassNotFoundException: org.aspectj.ajde.core.ICompilerConfiguration
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 37 more
eclipse.buildId=I20090611-1540
java.version=1.6.0_16
java.vendor=Sun Microsystems Inc.
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
我的Eclipse3.5版本是:
Eclipse Java EE IDE for Web Developers.
Build id: 20090621-0832
原来是我之前安装Maven插件的时候选择安装了AJDT,只要不安装AJDT插件,程序运行正常。
我想这个应该是AJDT的一个BUG吧。。。
分享到:
相关推荐
J2SE ( Java 2 Standard Edition)就是Java2的标准版,主要用于桌面应用软件的编程,是伴随着...(3)找到src打开->wyf.cgq->鼠标右键ClientServer.java->Run As->Java Application (4)输入用户名和IP等即可游戏。
右键com.lambkit.LambkitApplication->Run As->Java Application 启动完成 maven 依赖 <dependency> <groupId>com.lambkit</groupId> <artifactId>lambkit</artifactId> <version>1.0.3</version> </dependency...
最后,通过Run As->Java Application运行程序,控制台会显示"Hello World"。 【Eclipse常见问题及解决办法】 1. 创建Eclipse快捷方式:在桌面右键新建启动器,填写名称和Eclipse可执行文件的路径。 2. 显示行号:...
* 运行 Java 应用程序:Run -> Run As -> Java Application 三、Eclipse 的编码辅助功能 * 颜色显示 * 自动补齐 * 倒拉列表 * 监听接口 * 显示行号 * 设置断点 * 格式化 Java 代码 四、Eclipse 的数据库管理功能 ...
- `Run As->Java Application`运行程序 - 控制台窗口将显示"Hello World" 4. **Eclipse常见问题及解决方案** - **创建快捷方式**:桌面右键新建启动器,填写名字和命令路径 - **显示行号**:`Window->...
以上编译过程无报错后,选择src/main/java/TestSpboot2Application.java,run as->java application,即可运行。 首先进入登陆主页:http://localhost:8080/Sys/loginView,进行登陆 5. 登陆系统的用户名和密码: ...
学生成绩管理系统(springboot+layui+thymeleaf) 学生成绩管理系统(springboot+layui+...使用maven重新编译项目: 右键项目->run as ->maven install。 完成后,在更新项目: 右键项目->maven->update project…… 以
- 使用Run As->Java Application运行程序,查看控制台输出“Hello World”。 6. **Eclipse界面与设置**: - 自定义Eclipse启动快捷方式,可以在启动参数中添加`-data <workspace_path>`指定工作空间。 - 显示...
3. 修改Java源文件字体大小:Window->Preferences->General->Appearance->Colors and Fonts->Java->Java Editor Text Font,点击Change调整字体大小。 4. 删除自动生成的注释:Window->Preferences->Java->Code ...
5. **运行程序**:选择`Run As -> Java Application`,在控制台将输出"Hello World!",如图2-6所示。 通过以上步骤,你已成功配置了MyEclipse与Tomcat的集成,并学会了创建和运行一个简单的Java项目。后续章节将...
基于springboot+layui+thymeleaf的学生成绩管理系统设计与实现(适合课程设计作业、毕设、个人学习参考) 项目经过严格测试,确保可以运行!源码无需做任何更改!...使用maven重新编译项目: 右键项目->run as ->mave
编译完成后,开发者可以打开 Spoon.java,右键点击 Run As -> Java Application 启动 Kettle。启动成功后,Kettle 的界面将显示出来。 二、修改 Kettle 界面 2.1 修改背景图片、logo Kettle 的背景图片和 logo 都...
1. **运行Java应用程序**:通过Run -> Run As -> Java Application命令运行项目,检查程序是否按预期工作。如果出现错误或异常,可以利用Eclipse的调试工具进行定位和修复。 #### 结语 Java可视化编程结合了直观的...
要从您喜欢的编辑器中启动应用程序,请右键单击 Application.java -> Run As-> Java Application 或将其打包为 war 文件并将其部署到 tomcat 执行下面的脚本 - INSERT INTO oauth_client_details ( client_id , ...
在类文件中右击,在弹出的菜单中选择“Run As->Java Application”,即可运行当前项目。 8. 调试项目 调试是开发过程中不可或缺的一环。在Eclipse中,可以使用“Debug As”菜单来启动调试模式。调试过程中可以设置...
右键项目名称->run as ->Android Application,即可启动运行该 Android 程序。 至此,Android 开发环境搭建完毕,有问题请留言。在这里,我们已经完成了 Android 开发环境的搭建,包括下载和安装 JDK、Eclipse 和 ...
在Eclipse中,可以通过直接双击.class文件或点击菜单栏上的Run -> Run As -> Java Application来运行程序。 通过以上步骤,JAVA初学者可以顺利完成Eclipse的安装与配置,并学会使用Eclipse创建和运行简单的Java应用...
- 与上述方法类似,在Eclipse中选择“Run”->“Run As”->“Android Application”运行应用。 - 应用将被部署到虚拟设备上。 #### 四、查看标准输出 - **使用DDMS工具**: - 在Eclipse中打开DDMS工具(Dalvik ...