欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2023-12-03 13:10:46
报错之一: version 1.4.2_03 of the jvm not suitable for this product.version1.5 or geeater...
报错之一:
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的放在最后,放在中间也不行。