File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes j2ee & EJB 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 "j2ee & EJB" Watch "j2ee & EJB" New topic

j2ee & EJB

priya ranjan sahay

Joined: Feb 24, 2001
Posts: 6
When I compiled EJB files using jdk1.3(standard edition)
compiler javac,it gave errors such as can't resolve
symbols like EJBHome,EJBObject,CreateException etc.
Then I installed jsdk(enterprise edition)and set path
for \bin and \lib directories,but still it is not
recognising those classes.please send me details of
how to establish relations between these two jdks and
how to compile EJB files.
Thanking u
priya ranjan
Arun, Shanmugham
Ranch Hand

Joined: Apr 05, 2001
Posts: 34
Tell me what j2ee server u are using. If not download and install j2ee server from Sun or install some App Servers like
Bea WebLogic or IBM WebSphere or iPlanet App Server.

Sun Certified Programmer for Java2 Platform
ruilin yang
Ranch Hand

Joined: Feb 25, 2001
Posts: 334
u need to set the Classpath to include the directories containing the libraries for compiling EJB code.
Naveed Azhar

Joined: Apr 15, 2001
Posts: 5
Hi priya ranjan sahay:
You mentioned that you have included \lib directory in the CLASSPATH. In fact you you need to include j2ee.jar file ( located in the \lib directory, not \lib directory )in your CLASSPATH.
so your classpath will have entry \lib\j2ee.jar ( not \lib itself).
Hope it works, cheers
Muhammad Naveed Azhar

Muhammad Naveed Azhar<BR>(
I agree. Here's the link:
subject: j2ee & EJB
It's not a secret anymore!