my dog learned polymorphism*
The moose likes Java in General and the fly likes Add dependency in maven project for j2ee.jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Add dependency in maven project for j2ee.jar" Watch "Add dependency in maven project for j2ee.jar" New topic

Add dependency in maven project for j2ee.jar

Raihan Jamal
Ranch Hand

Joined: Mar 23, 2010
Posts: 86
What is the maven dependency for j2ee.jar. I tried doing this way. But still its not working..

Any suggestions will be appreciated..
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13884

Raihan Jamal wrote:But still its not working..

What does that mean, "it's not working"? Do you get an error message when you try to build or run your project? If yes, then what exactly is the error message, and what commands exactly are you typing?

I think the dependency you've added is correct for Java EE 6. But it will only include the API for Java EE 6 in the classpath; to run your application, you'd need to deploy it in an application server that implements the Java EE 6 API.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
I agree. Here's the link:
subject: Add dependency in maven project for j2ee.jar
Similar Threads
Problem facing in Ejb execution in eclipse IDE
Maven dependencies
Maven web project dependencies
Error: ERROR initServletBean, Context initialization failed
Sonar - Native Plugin