OpenJDK for JavaEE Development?

I am developing a JavaEE application and deploying it to Glassfish 3. I am using Ubuntu 12.04, Eclipse for EE developers and OpenJDK 6 JDK (openjdk-6-jdk package). There are no problems at the moment.

The problem is that wherever I look for information about using OpenJDK to develop Java EE, I find that it is assumed that OpenJDK is just Java SE, for example here , or here . However, in my application I use javax.* lot and work.

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

Again, I have no other JDK besides OpenJDK, neither GCJ, nor Oracle.

My question is: how is this possible? Does OpenJDK support the JavaEE API? Can it be used for this, or do I need to download and install Oracle JDK? I don’t understand anything here?

Note that Oracle displays the SDK for SE separately from the SDK for EE, so I assume they are different, right?

Yours faithfully

+7
source share
1 answer

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

See also:

+9
source

All Articles