• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why my complier could not find javax.ejb.*  RSS feed

 
John Jyang
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When I tried to compile the java programs from first chapter of Head First EJB, I got complier error message "javax.ejb does not exist" from the program line "import javax.ejb.*;". I have installed J2EE 1.3 and included "D:\j2sdkee1.3.1\lib" into my CLASSPATH. by the way, compiling a pure java program is fine to me. Did I still miss anything? Thanks,

John
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Including a directory (like D:\j2sdkee1.3.1\lib) in your classpath is no good if it contains jar files, you need to include the individual libraries (i.e., jar files) that are in that directory in the classpath.
 
John Jyang
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do you know what specific jar file I need to include in CLASSPATH? I include j2ee.jar, but it still didn't work. Thanks,
 
John Jyang
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am able to compile it, I need to add one more entry "J2EE_HOME" in my System user vaiable.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!