jQuery in Action, 3rd edition
The moose likes EJB and other Java EE Technologies and the fly likes new to EJB . how do i compile and deploy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "new to EJB . how do i compile and deploy" Watch "new to EJB . how do i compile and deploy" New topic

new to EJB . how do i compile and deploy

Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183

i'm pretty new to the EJB technology.
i read head first EJB but got stuck at the deployment section

i created the java source files and deployment descriptor, downloaded java ee + jdk + glassfish app server and installed everything

in the book they compile the 3 source files and this is where i get stuck ..
i use the compiler in the java ee directory under /jdk/bin but it wont compile cuz it cant find the javax.ejb.* imports ...
what do i do wrong ?

thanks for advice ..

JDBCSupport - An easy to use, light-weight JDBC framework -
Ankit Garg

Joined: Aug 03, 2008
Posts: 9435

Sebastian while compiling, you'll have to give the path of the Jars related to JavaEE. I would recommend that you use Ant or any IDE (at least that's what I do). I have used glassfish in the past but with an IDE. I also have Java EE installed on my system and I don't think that the jdk installed with java ee automatically takes the Java EE classes automatically. I think you'll have to include the javaee.jar in the lib folder of the java ee installation into the classpath. I was also not able to compile a normal servlet directly without including the javaee.jar in the classpath. If you can compile normal servlets, then I may be wrong and the problem could be something else...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link: http://aspose.com/file-tools
subject: new to EJB . how do i compile and deploy
It's not a secret anymore!