This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes can't find javax.ejb.* Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "can Watch "can New topic

can't find javax.ejb.*

Nizan Horsefield
Ranch Hand

Joined: Jun 05, 2001
Posts: 42
Hello again, hope you can help!
I have just started working with EJB's and have come across a stumbling block. I have installed, JDK J2SE and then J2EE as per instructions. I use Forte CE as my IDE. When I add the import statements, Forte cannot find javax.ejb!
It can find servlet, swing, microedition, naming, and accesibility.
I know that it is not using J2ME to compile as I have told it not to.
Can some please tell me why this might be happening as it is hampering my progression!

Nizan Horsefield<BR>Sys Eng Internet Services<BR>Citibank
sanjay kumaresan

Joined: Jun 29, 2001
Posts: 8
You have to set the classpath as follows
Goto Dos prompt,
Type the following commands
set classpath=c:\j2sdkee1.x.x\lib\j2ee.jar;
set path=c:\j2sdkee1.x.x\bin;
Now try to compile your application it will compile.
The following steps for j2sdkee.
Definitely it will work. Even any problem you can contact me.


Yahoo messanger id: sanjaykumaresan
Best of luck
vierycn lee

Joined: Aug 28, 2001
Posts: 2
Add j2ee.jar in you enviroment variable CLASSPATH.
Nizan Horsefield
Ranch Hand

Joined: Jun 05, 2001
Posts: 42
Unfortunatelt I have already set these env. variables on my PC. The EJB classes that I am writing compile fine from the DOS prompt. It is only from within Sun's IDE Forte, that I cannot get to javax.ejb.*.
Any ideas?
I agree. Here's the link:
subject: can't find javax.ejb.*
jQuery in Action, 3rd edition