eclipse luna java 版本,Eclipse 4.4(Luna)是否需要Java 1.7

Eclipse Luna 4.4需要Java 1.7或更高版本才能运行。如果尝试使用1.6版本,可能会遇到错误。文章指出,Eclipse Luna的编译版本为51,对应Java 1.7,这意味着1.6版本无法支持。尽管如此,每个Eclipse组件可能有不同的最低需求,但针对大型平台如Eclipse,建议遵循官方要求。
摘要由CSDN通过智能技术生成

I decided to update my eclipse to 4.4 (luna release). When I try to launch it however, I get an error stating that eclipse requires 1.7 or later of java jvm.

Just wanted to see if this is true and if it is possible to get it running with 1.6 (specifically 1.6.0_65)

解决方案

If there is an explicit message stating that 1.7 or later is required when you run it with 1.6, I expect this to be a strong (ie blocking) minimum requirement. Eclipse Luna (4.4) is the first release requiring 1.7:

And still, if you still doubt it you can verify for which version it was compiled. For every Eclipse classes run the following command:

javap -verbose EclipseClass.class

Look for Major Version. If value is 51 this means it was compiled for java 1.7, so you are out of luck for 1.6. The magic numbers for major versions are :

J2SE 8 = 52 (0x34 hex),

J2SE 7 = 51 (0x33 hex),

J2SE 6.0 = 50 (0x32 hex),

J2SE 5.0 = 49 (0x31 hex),

JDK 1.4 = 48 (0x30 hex),

JDK 1.3 = 47 (0x2F hex),

JDK 1.2 = 46 (0x2E hex),

JDK 1.1 = 45 (0x2D hex).

and are described here:

Thing is, each eclipse bundle have different minimum requirements, so this may not be a good option for a platform as big as Eclipse. Anyway, I mention it because its good to know.

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值