wood burning stoves*
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "j2ee & EJB" Watch "j2ee & EJB" New topic
Author

j2ee & EJB

priya ranjan sahay
Greenhorn

Joined: Feb 24, 2001
Posts: 6
sir,
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
Hi,
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.
Arun
SCJP


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
Greenhorn

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
(naveed@hotmail.com)


Muhammad Naveed Azhar<BR>(naveed@hotmail.com)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: j2ee & EJB