File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Compiling EJB interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Compiling EJB interfaces" Watch "Compiling EJB interfaces" New topic

Compiling EJB interfaces

prasanna kumar

Joined: Jun 27, 2004
Posts: 12
Hello people,

I'm a beginner to EJB Technology.
i tried compiling the home,component, files but the compiler says that package javax.ejb doesn't exist...
the error is on the line javax.ejb.*;
I would really appreciate if anyone can give any suggestions.
Since This is the first step i'm not able to proceed further.

I downloaded the j2ee RI server
and I set the environment varaiables as

J2EE_HOME - c:\j2sdkee1.3.1
JAVA_HOME - c:\j2sdk1.4.2_04
PATH - c:\j2sdkee1.3.1\bin;c:\j2sdk1.4.2_04\bin
do i need to set up the classpath to j2ee.jar? if so
do I find the j2ee.jar file and how do i set up the classpath

I would be grateful if anyone can clear this.

Thank you
C Chavan

Joined: Mar 19, 2004
Posts: 27
yes, you will need to setup the classpath to include j2ee jar files. alternately, if you are compiling from command prompt, you may specify the required JARs using javac -classpath option.
I agree. Here's the link:
subject: Compiling EJB interfaces
It's not a secret anymore!