Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java EE vs Java SE: version mismatch? [duplicate]

I've been wondering if there is a correlation between versions of Java EE working on top of Java SE. I've found this question, but the answers there are outdated and not satisfying. My question is:

  • is there a tight coupling between EE and SE versions so that java EE 8 will only work with Java 1.8, java ee 7 will work only with java 1.7 and so on?
  • if above is false (i.e. you can mix versions), is above the preferred way? Does it make sense to run java EE 6 on java SE 1.8 (just an example)?

I know that Java EE is just a bag of specifications, but do these specifications enforce java SE version anyhow?

like image 216
ducin Avatar asked Jul 23 '26 14:07

ducin


2 Answers

It's rather about which SE versions EE server can work with. Like here https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6/html/Installation_Guide/Java_Environments_Supported_By_JBoss_Enterprise_Application_Platform_61.html

like image 140
Evgeniy Dorofeev Avatar answered Jul 26 '26 04:07

Evgeniy Dorofeev


As per oracle document here

Java EE

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.

So ideally Java SE must be higher or equivalent version when compared to JAVA EE. According to this statement its possible to run java EE 6 on java SE 1.8 and not the other-way round.

like image 33
Logan Avatar answered Jul 26 '26 03:07

Logan