eclipse报错 eclipse启动报错解决方法

 更新时间:2012年11月30日 09:46:53   作者:  
本文将介绍eclipse启动报错解决方法,需要了解的朋友可以参考下
报错之一:
Version 1.4.2_03 of the JVM not suitable for this product.Version1.5 or geeater is required
大概意思好像说我的JVM虚拟机的环境 1.4版本过低,让我用1.5版本以上的,很疑惑。。。我安装的jdk是1.7的。
不过jvm是;

C:\Documents and Settings\Administrator>java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)

C:\Documents and Settings\Administrator>

报错之二:
!SESSION 2012-11-27 20:26:37.326 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.4.2_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 2 1 2012-11-27 20:26:37.779
!MESSAGE NLS unused message: ECLIPSE_OSGI_NAME in: org.eclipse.osgi.framework.internal.core.ExternalMessages

!ENTRY org.eclipse.osgi 2 1 2012-11-27 20:26:37.779
!MESSAGE NLS unused message: OSGI_VERSION in: org.eclipse.osgi.framework.internal.core.ExternalMessages

!ENTRY org.eclipse.osgi 2 1 2012-11-27 20:26:37.795
!MESSAGE NLS unused message: ECLIPSE_COPYRIGHT in: org.eclipse.osgi.framework.internal.core.ExternalMessages

!ENTRY org.eclipse.osgi 2 1 2012-11-27 20:26:37.795
!MESSAGE NLS unused message: BUNDLE_CLASSPATH_ENTRY_NOT_FOUND_EXCEPTION in: org.eclipse.osgi.framework.internal.core.ExternalMessages

!ENTRY org.eclipse.osgi 2 1 2012-11-27 20:26:37.795
!MESSAGE NLS unused message: BUNDLE_FRAGMENT_IMPORT_CONFLICT in: org.eclipse.osgi.framework.internal.core.ExternalMessages

!ENTRY org.eclipse.osgi 2 1 2012-11-27 20:26:37.795
!MESSAGE NLS unused message: FILTER_INVALID in: org.eclipse.osgi.framework.internal.core.ExternalMessages

!ENTRY org.eclipse.osgi 2 1 2012-11-27 20:26:37.795
!MESSAGE NLS unused message: LAUNCHER_ADAPTOR_ERROR in: org.eclipse.osgi.framework.internal.core.ExternalMessages

!ENTRY org.eclipse.osgi 2 1 2012-11-27 20:26:37.795
!MESSAGE NLS unused message: LAUNCHER_INVALID_PORT in: org.eclipse.osgi.framework.internal.core.ExternalMessages

!ENTRY org.eclipse.osgi 2 1 2012-11-27 20:26:37.795
!MESSAGE NLS unused message: LAUNCHER_COMPONENT_MISSING in: org.eclipse.osgi.framework.internal.core.ExternalMessages

!ENTRY org.eclipse.osgi 2 1 2012-11-27 20:26:37.795
!MESSAGE NLS unused message: LAUNCHER_COMPONENT_JAR in: org.eclipse.osgi.framework.internal.core.ExternalMessages

!ENTRY org.eclipse.osgi 2 1 2012-11-27 20:26:38.170
!MESSAGE NLS unused message: COMMIT_INVALID_TIMESTAMP in: org.eclipse.osgi.internal.resolver.StateMessages

!ENTRY org.eclipse.equinox.p2.reconciler.dropins 4 0 2012-11-27 20:26:38.170
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: 无法解析束。原因:org.eclipse.equinox.p2.reconciler.dropins_1.1.100.v20110510 [84]
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1327)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1311)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1130)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.osgi 2 1 2012-11-27 20:26:38.341
!MESSAGE NLS unused message: ECLIPSE_STARTUP_INVALID_PORT in: org.eclipse.core.runtime.internal.adaptor.EclipseAdaptorMessages

!ENTRY org.eclipse.osgi 2 1 2012-11-27 20:26:38.341
!MESSAGE NLS unused message: ECLIPSE_STARTUP_FAILED_FIND in: org.eclipse.core.runtime.internal.adaptor.EclipseAdaptorMessages

!ENTRY org.eclipse.osgi 2 1 2012-11-27 20:26:38.341
!MESSAGE NLS unused message: ECLIPSE_CONSOLE_DISABLED_BUNDLE_REASON2 in: org.eclipse.core.runtime.internal.adaptor.EclipseAdaptorMessages

!ENTRY org.eclipse.osgi 2 1 2012-11-27 20:26:38.341
!MESSAGE NLS unused message: ECLIPSE_CLASSLOADER_GENERATED_EXCEPTION in: org.eclipse.core.runtime.internal.adaptor.EclipseAdaptorMessages

!ENTRY org.eclipse.osgi 2 1 2012-11-27 20:26:38.341
!MESSAGE NLS unused message: ECLIPSE_CLASSLOADER_ALREADY_STOPPED in: org.eclipse.core.runtime.internal.adaptor.EclipseAdaptorMessages

!ENTRY org.eclipse.osgi 2 1 2012-11-27 20:26:38.357
!MESSAGE NLS unused message: ECLIPSE_BUNDLESTOPPER_ERROR_STOPPING_BUNDLE in: org.eclipse.core.runtime.internal.adaptor.EclipseAdaptorMessages

!ENTRY org.eclipse.osgi 2 0 2012-11-27 20:26:38.357
!MESSAGE 由于未解析以下根约束,所以未解析一个或多个束:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-11-27 20:26:38.357
!MESSAGE 未解析 bundle reference:file:plugins/org.eclipse.core.net.win32.x86.nl_zh_3.5.0.v20091121043401.jar。
!SUBENTRY 2 org.eclipse.core.net.win32.x86.nl_zh 2 0 2012-11-27 20:26:38.357
!MESSAGE 缺少主机 org.eclipse.core.net.win32.x86_0.0.0。
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-11-27 20:26:38.357
!MESSAGE 未解析 bundle reference:file:plugins/org.eclipse.equinox.launcher.win32.win32.x86.nl_zh_3.5.0.v20091121043401.jar。
!SUBENTRY 2 org.eclipse.equinox.launcher.win32.win32.x86.nl_zh 2 0 2012-11-27 20:26:38.357
!MESSAGE 缺少主机 org.eclipse.equinox.launcher.win32.win32.x86_0.0.0。

!ENTRY org.eclipse.osgi 2 0 2012-11-27 20:26:38.482
!MESSAGE 以下是未解析的束的完整列表,请参阅上一个日志条目以了解根本原因(如果存在该日志条目的话):
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-11-27 20:26:38.482
!MESSAGE 未解析 bundle com.ibm.icu_4.4.2.v20110208 [2]。
!SUBENTRY 2 com.ibm.icu 2 0 2012-11-27 20:26:38.482
!MESSAGE 缺少约束:Bundle-RequiredExecutionEnvironment: J2SE-1.5
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-11-27 20:26:38.482
!MESSAGE 未解析 bundle org.eclipse.ant.launching_1.0.100.v20110506 [16]。
!SUBENTRY 2 org.eclipse.ant.launching 2 0 2012-11-27 20:26:38.482
!ENTRY org.eclipse.osgi 4 0 2012-11-27 20:26:38.513
!MESSAGE 应用程序错误
!STACK 1
java.lang.RuntimeException: 应用程序 {0} 在注册器中没有找到. 应用程序可以应用在: org.eclipse.ant.core.antRunner, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.pde.junit.runtime.uitestapplication, org.eclipse.pde.junit.runtime.legacytestapplication, org.eclipse.pde.junit.runtime.coretestapplication, org.eclipse.pde.junit.runtime.coretestapplicationnonmain, org.eclipse.pde.junit.runtime.nonuithreadtestapplication, org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
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:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
解决方法:

在我的电脑-高级-环境变量path中,将系统变量path里面的内容调整一下,Oracle的内容全部移到最后边。如:
%JAVA_HOME%\bin;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;d:\Program Files\ATI Technologies\ATI.ACE\Core-Static;d:\oracle\product\10.1.0\Db_2\bin;d:\oracle\product\10.1.0\Db_2\jre\1.4.2\bin\client;d:\oracle\product\10.1.0\Db_2\jre\1.4.2\bin;

错误原因:

因为我本来安装了oracle,oracle的jre变量值优先于java,所以导致java的jre失效,报错XXX未找到。必须把oracle的放在最后,放在中间也不行。

相关文章

  • Java集合框架之Stack Queue Deque使用详解刨析

    Java集合框架之Stack Queue Deque使用详解刨析

    早在 Java 2 中之前,Java 就提供了特设类。比如:Dictionary, Vector, Stack, 和 Properties 这些类用来存储和操作对象组。虽然这些类都非常有用,但是它们缺少一个核心的,统一的主题。由于这个原因,使用 Vector 类的方式和使用 Properties 类的方式有着很大不同
    2021-10-10
  • SpringMVC访问静态资源的方法

    SpringMVC访问静态资源的方法

    本篇文章主要介绍了SpringMVC访问静态资源的方法,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
    2017-02-02
  • Servlet实现分页效果

    Servlet实现分页效果

    这篇文章主要为大家详细介绍了Servlet实现分页效果,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
    2018-03-03
  • 利用java监听器实现在线人数统计

    利用java监听器实现在线人数统计

    过去使用ASP和ASP.NET两种编程的时候,都写过在线人数统计能,实现功能挺简单的!今天使用java来实现在线人数统计有点另类,是通过Java监听器实现的,需要的朋友可以参考下
    2015-09-09
  • Centos6.5下Jdk+Tomcat+Mysql环境安装图文教程

    Centos6.5下Jdk+Tomcat+Mysql环境安装图文教程

    这篇文章主要为大家详细介绍了Centos6.5系统下Jdk+Tomcat+Mysql环境安装过程,感兴趣的小伙伴们可以参考一下
    2016-05-05
  • Java四种访问控制修饰符知识点总结

    Java四种访问控制修饰符知识点总结

    本篇文章给大家详细分析了Java四种访问控制修饰符的相关知识点,有兴趣的朋友可以参考学习下。
    2018-03-03
  • log4j的使用详细解析

    log4j的使用详细解析

    最近在整理公司产品的日志输出规范,涉及log4j的使用介绍,就简单整理了一下。需要的朋友可以过来参考参考
    2013-08-08
  • Spring boot实现热部署的两种方式详解

    Spring boot实现热部署的两种方式详解

    这篇文章主要介绍了Spring boot实现热部署的两种方式,这两种方法分别是使用 Spring Loaded和使用spring-boot-devtools进行热部署,文中给出了详细示例代码和介绍,需要的朋友可以参考学习,下面来一起看看吧。
    2017-04-04
  • Springboot Websocket Stomp 消息订阅推送

    Springboot Websocket Stomp 消息订阅推送

    本文主要介绍了Springboot Websocket Stomp 消息订阅推送,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
    2021-07-07
  • maven 隐式依赖引起的包冲突解决办法

    maven 隐式依赖引起的包冲突解决办法

    这篇文章主要介绍了maven 隐式依赖引起的包冲突解决办法的相关资料,需要的朋友可以参考下
    2016-12-12

最新评论