Home > front end >  How to move from Java EE to OpenJDK?
How to move from Java EE to OpenJDK?

Time:12-31

I am using:

  • Java EE 1.8
  • Eclipse 2022-12
  • Apache Tomcat v10.1.1

I would like to move to OpenJDK. How do I replace the Java EE 1.8 with the OpenJDK in Eclipse please?

CodePudding user response:

Java SE (Standard Edition) is a set of specifications published by Oracle Corp. See Java Language and Virtual Machine Specifications.

Several vendors release software implementing those specifications. These vendors include, in no specific order: Amazon, BellSoft, IBM, Oracle, SAP, Azul Systems, Microsoft, Red Hat, and more.

Nearly all of these implementations are built largely, if not entirely, from the source code housed at the OpenJDK open-source project. That project is owned by Oracle Corp. Others contribute code and labor, including IBM, Apple, and more.

Oracle also owned a set of specifications for software to run on top of Java SE implementations. These specs were known as Java Enterprise Edition (Java EE) because they were aimed primarily at enterprise-oriented developers. Oracle in recent years donated these specs and related technologies to the Eclipse Foundation, where they were open-sourced. The name changed to Jakarta EE.

Several vendors publish software that implement the Jakarta EE specs. Some of these vendors publish app server software that bundle several of the Jakarta EE implementations to form a deployment container for your app that uses these Jakarta EE technologies.

Apache Tomcat is one such product that provides implementations of several Jakarta EE specs in a web app deployment container. These implemented specs include Jakarta Servlet, Jakarta Server Pages, Jakarta Expression Language, and more.

The Eclipse Foundation also publishes a popular IDE. The IDE is known simply as Eclipse. You can use Eclipse to write Java-based apps. These apps can optionally use libraries that implement some of the Jakarta EE specs.

So your Question does not make any sense.

  • Eclipse is an IDE used to write Java-based apps.
  • Your app written in Eclipse can use any of several implementations of Java, nearly all of which are based on the source-code published by the OpenJDK project.
  • Java-based apps can optionally make use of libraries implementing Jakarta EE specs.
  • If using those Jakarta EE technologies, you’ll need a container app server in which to deploy your app. Tomcat is one such container.

CodePudding user response:

Try below solution :

Window → Preferences → Java → Installed JREs → Add [Here add your open JDK path]

  • Related