Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use any version of Java SE with Java EE 8?

With every new release of Java EE, there's a bunch of new improvements and additions to the technology stack that come under it. JSF, JPA, EJBs will all have different versions associated with this new release. (Java EE 8 - JSF 2.3, JSP2.3, JPA 2.2, EJBs 3.2)

Java SE platform is releasing new version of Java SE every 6 months or so. How does this change fit in with the Java EE?

For example, if I'm developing an application in Java EE 8 which Java SE(9,10,11,12) should I use?

1. Can I use any version of Java SE with Java EE? (Java EE 8 + Java SE 11) or (Java EE 8 + Java SE 8) or (Java EE 8 + Java SE 10).

How does Java EE handles the ever changing Java SE? Because there's specific version specified for every technology used in Java EE 8 like JSF 2.3, JSP2.3, JPA 2.2, EJBs 3.2 .

2. Why isn't a specific version of Java SE used in Java EE to do the programming?

like image 492
lea Avatar asked Apr 28 '19 17:04

lea


People also ask

Does Java EE include Java SE?

The Java EE platform is built on top of the Java SE platform. The Java EE platform provides an API and runtime environment for developing and running large-scale, multi-tiered, scalable, reliable, and secure network applications.

How is Java EE different from Java SE?

Java SE is for developing desktop applications Java EE is used for developing web applications and large-scale enterprise applications.

Is Java 1.8 and Java 8 are same?

In JDK 8 and JRE 8, the version strings are 1.8 and 1.8. 0. Here are some examples where the version string is used: java -version (among other information, returns java version "1.8.

Is Java 8 backwards compatible?

Backward Compatibility Java versions are expected to be binary backwards-compatible. For example, JDK 8 can run code compiled by JDK 7 or JDK 6. It is common to see applications leverage this backwards compatibility by using components built by different Java version.


1 Answers

JDK 8+ is required, but...

It actually depends on your Java EE 8 vendor.

Java EE 8 (a.k.a. Jakarta EE) has a few API elements that require JDK 8, so the definitive baseline is at least JDK 8.

For instance, I use Wildfly 16 (= Java EE 8) with JDK 12 and it works flawlessly so far, though JDK 8 is required.

Other vendors like Glassfish, Weblogic might require different versions. Glassfish, for instance doesn't work yet on JDK 9+.

like image 159
Olivier Grégoire Avatar answered Oct 29 '22 09:10

Olivier Grégoire