Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenJDK to develop JavaEE?

I'm developing a JavaEE application and deploying it in Glassfish 3. I'm using Ubuntu 12.04, Eclipse for EE developers, and OpenJDK 6 JDK (package openjdk-6-jdk). No problems so far.

The problem is that everywhere where I look for information about using OpenJDK for Java EE development I found that it is supposed that OpenJDK is just Java SE, for example here, or here. Nevertheless, in my application I'm using javax.* a lot, and is working.

I've downloaded the source of OpenJDK 6 and I've found folder /jdk/src/share/classes/javax/ with a lot of classes, but some importants are missing like javax.servlet, javax.ejb or javax.faces.

Again, I don't have any other JDK besides the OpenJDK, nor GCJ or Oracle ones.

My question is: How is this possible? OpenJDK has support for the JavaEE APIs? Can it be used for that, or I need to download and install Oracle JDK? I'm not understanding something here?

Please note that Oracle list SDK for SE apart from SDK for EE, so I suppose they are different, right?

Kind regards

like image 987
Havok Avatar asked Jun 16 '12 04:06

Havok


People also ask

Can OpenJDK be used in production?

All Red Hat distributions of OpenJDK are supported for development and production for all Java workloads, giving you the confidence to develop, test, and deploy in Windows or Linux-based environments.

What is OpenJDK used for?

OpenJDK is an open source implementation of the Java Standard Edition (Java SE) and Java Development Kit (JDK). The OpenJDK source code is the basis for these commercial Java products.

Is OpenJDK better than Oracle java?

Performance. There's no real technical difference between the two, since the build process for Oracle JDK is based on that of OpenJDK. When it comes to performance, Oracle's is much better regarding responsiveness and JVM performance.

Can OpenJDK replace Oracle JDK?

Oracle JDK 11 and OpenJDK 11 will be interchangeable. There are some differences between Oracle JDK 1.8 and OpenJDK 1.8, although the gap is shrinking.


1 Answers

Your Glassfish server is the concrete Java EE implementation. Note that OpenJDK is a concrete Java SE implementation. Also note that whenever you download Java EE from Oracle site, basically all you get is Glassfish along with a bunch of documents and examples.

See also:

  • What exactly is Java EE?
like image 98
BalusC Avatar answered Sep 23 '22 15:09

BalusC