Where does the jar file come from? I expected this to be part of the JDK or Eclipse. This expectation turned out to be wrong.
Sun / Oracle provides java-ee.jar , which contains only the Java EE API and does not contain any method bodies that you can use to compile against it (from the java.net maven repository):
If you want to execute some Java EE code, you will need a Java EE application server, it will provide Java EE API implementation. For example, for Java EE 6 there is GlassFish .
if you want javaee-api-7.jar use maven dependency
<dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>7.0</version> </dependency>
or you can download here
Download Glassfish or JBOSS or another Java EE application server. They are all there.