关于eclipse启动出错问题的解决办法

!SESSION 2011-05-17 10:14:48.625 -----------------------------------------------
eclipse.buildId=M20100211-1343
java.version=1.3.1_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Framework arguments:  -vm e:/Program Files/Java/jre6/bin/java.exe
Command-line arguments:  -os win32 -ws win32 -arch x86 -vm e:/Program Files/Java/jre6/bin/java.exe

!ENTRY org.eclipse.osgi 4 0 2011-05-17 10:14:59.203
!MESSAGE Startup error
!STACK 1
java.lang.NoSuchMethodError
 at org.osgi.framework.BundleException.<init>(BundleException.java:149)
 at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:806)
 at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
 at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.resume(InternalSystemBundle.java:207)
 at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:649)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:298)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
 at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
 at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
 at org.eclipse.equinox.launcher.Main.main(Main.java:1287)

!ENTRY org.eclipse.osgi 2 0 2011-05-17 10:14:59.437
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-05-17 10:14:59.437
!MESSAGE Bundle reference:file:plugins/org.mortbay.jetty_5.1.11.v200806031610.jar was not resolved.
!SUBENTRY 2 org.mortbay.jetty 2 0 2011-05-17 10:14:59.437
!MESSAGE Missing imported package javax.net.ssl_0.0.0.
!SUBENTRY 2 org.mortbay.jetty 2 0 2011-05-17 10:14:59.437
!MESSAGE Missing imported package javax.security.cert_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-05-17 10:14:59.437
!MESSAGE Bundle reference:file:plugins/org.eclipse.ecf.ssl_1.0.0.v20090831-1906.jar was not resolved.
!SUBENTRY 2 org.eclipse.ecf.ssl 2 0 2011-05-17 10:14:59.437
!MESSAGE Missing imported package javax.net.ssl_0.0.0.

 

 

以上是错误日志,当时在网上查了很久,均无此问题的解决办法,找寻了半天,最后发现日志的开头出:JVM Version 1.3,然后我用cmd命令java -version 也是1.3,问题的根源就在这里,环境变量里边设置的JRE版本太低了。重新设置环境变量为1.6的JDK版本,重启eclipse问题解决。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值