GeeCON Prague 2014*
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
Author

Compiling EJB interfaces

prasanna kumar
Greenhorn

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

I'm a beginner to EJB Technology.
i tried compiling the home,component,bean.java 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
Arun
C Chavan
Greenhorn

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.
 
GeeCON Prague 2014
 
subject: Compiling EJB interfaces