Java EE/J2EE 与 J2SE/JDK 版本之间的相关性 [英] Correlation between Java EE / J2EE to J2SE / JDK versions

查看:21
本文介绍了Java EE/J2EE 与 J2SE/JDK 版本之间的相关性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确信我会找到重复的问题或令人满意的答案,但我没有.

I was certain that I'll find a duplicate question or a satisfying answer, but I haven't.

我正在寻找的是这些问题的答案:

What I'm looking for is the answer to these questions:

  • Java EE/J2EE 和 J2SE/JDK 版本之间是否存在官方关联?
  • 如果答案是肯定的,写在哪里?
  • 如果答案是否定的,那为什么?是否有非官方版本表(例如 JDK 1.4 与 J2EE 1.3 兼容,JDK 1.5 与 J2EE 1.4 兼容,JDK 1.6 与 Java EE 5 等等)

我能想到解耦的几个原因,但似乎找不到好的参考来源

I can think of a couple of reasons for the uncoupling, but can't seem to find a good reference source

相关问题:

Java SE 与 Java EE、大学和职业生涯

什么是 Java EE?

推荐答案

Java EE/J2EE 和 J2SE/JDK 版本之间是否有官方关联?

Is there an official correlation between Java EE / J2EE and J2SE / JDK versions?

Sun 可能会尝试保持某种相关性",以免混淆用户和用于营销目的,但是,AFAIK,,没有官方相关性(并且保持伪同步可能随着 JDK 的发展速度超过 Java EE 规范,将来会变得更难).

Sun may try to keep some kind of "correlation" to not confuse users and for marketing purpose but, AFAIK, no, there is no official correlation (and maintaining the pseudo synchronisation might become harder in the future as the JDK evolves faster than the Java EE specification).

更新:我错了,实际上存在相关性(见下文).但我仍然认为这可能会成为一个问题:Java 7 定于 2010 年末,专家组能否在 Java 8 和 Java 7 EOL 之前成功推出 Java EE 7?

UPDATE: I was wrong, there is actually a correlation (see below). But I still think that this might become a problem: Java 7 is scheduled for late 2010, will the expert group succeed to roll out Java EE 7 before Java 8 and Java 7 EOL?

如果答案是肯定的,写在哪里?

If the answer is yes, where is it written?

引用 JSR 151:JavaTM 2 Platform, Enterprise Edition 1.4 (J2EE 1.4) 规范 主页:

  • J2EE 1.4 是 Java 平台 1.4 版的企业版,因此​​将基于 J2SE 1.4 构建.

引用 JSR 244:Java(TM) 平台,企业版 5(Java EE 5)) 规范主页:

  • Java EE 5 是 Java 平台第 5 版的企业版,因此​​将基于 J2SE 5.0 构建.

引用 JSR 316:JavaTM Platform, Enterprise Edition 6 (Java EE 6) 规范 主页:

  • Java EE 6 是 Java 平台第 6 版的企业版,因此​​将基于 Java SE 6 构建.

说真的,为什么我们必须去 JCP 网站才能找到这个(也许我应该从那里开始)?

Seriously, why do we have to go to the JCP website to find this (maybe I should have started there though)?

如果答案是否定的,那为什么?

If the answer is no, then why?

Java 企业版是一个规范,而不是一个实现.它可能依赖于特定功能(如 Java EE 5 和 Java 5 泛型),但 JDK 版本实际上取决于您使用的容器的实现.请参阅下面的 Websphere 示例.(即使在上面的大更新之后,这仍然适用.)

Java Enterprise Edition is a specification, not an implementation. It might rely on specific features (like Java EE 5 and Java 5 generics) but the JDK version is actually dependent upon the implementation of the container you are using. See the Websphere example below. (This still applies, even after the big UPDATE above.)

是否有非官方版本表(例如 JDK 1.4 与 J2EE 1.3 兼容,JDK 1.5 与 J2EE 1.4 兼容,JDK 1.6 与 Java EE 5 等等)

and is there an unofficial version table (e.g. JDK 1.4 goes well with J2EE 1.3, JDK 1.5 goes well with J2EE 1.4, JDK 1.6 with Java EE 5 and so on)

正如我上面所说的,一切顺利"实际上没有意义,因为这取决于您使用的容器,并且容器可能具有不同的兼容性要求(例如 IBM WebSphere 的 J2EE 1.4 服务器可能不适用于 JDK 5).所以,我更愿意谈谈需求.

As I said above, "goes well" doesn't really makes sense as this depends on the container you are using and containers might have different compatibility requirements (for example IBM WebSphere's J2EE 1.4 server may not work with JDK 5). So, I'd rather speak in terms of requirements.

J2EE 1.4 SDK 与 JDK 5 捆绑在一起,但是……J2EE 1.4 需要 JDK 1.4 或更高版本.Java EE 5 需要 JDK 5 或更高版本.Java EE 6 需要 JDK 6 或更高版本(JDK 5 现在已停产 2 个多月).

The J2EE 1.4 SDK is bundled with JDK 5 but... J2EE 1.4 requires JDK 1.4 or later. Java EE 5 requires JDK 5 or later. Java EE 6 requires JDK 6 or later (JDK 5 is at its EOL for 2+ months now).

这篇关于Java EE/J2EE 与 J2SE/JDK 版本之间的相关性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆