File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can't find javax.ejb.*

 
Nizan Horsefield
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
Cheers
Niz
 
sanjay kumaresan
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
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.

Email: sanjaykumaresan@rediffmail.com

Yahoo messanger id: sanjaykumaresan
Best of luck
M.Sanjay
 
vierycn lee
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add j2ee.jar in you enviroment variable CLASSPATH.
 
Nizan Horsefield
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic