File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes package javax.ejb.*;  does not exist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "package javax.ejb.*;  does not exist" Watch "package javax.ejb.*;  does not exist" New topic
Author

package javax.ejb.*; does not exist

Amos K
Greenhorn

Joined: Dec 26, 2004
Posts: 1
I am new here and right now facing the problem of non-existing javax.ejb.*;
I am using the HF to study the ejb. On the Chapter 1 everything went fine including compiling bean, the two interface classes, which means that the classpath(C:\Sun\J2EE\lib\j2ee.jar) is set correctly, the javax.ejb found. But...the AdviceClient fails the compilation with the "package javax.ejb does not exist" error. Can someone Help???!!!

Thanks
Seetesh Hindlekar
Ranch Hand

Joined: Feb 13, 2004
Posts: 244
Hello,

If classpath doesnt help then unzip the contents of j2ee.jar in the classes folder of the App Server.

Rgds,

Seetesh
jim bonafede
Greenhorn

Joined: Dec 22, 2004
Posts: 4
Hello, fellow HF reader. Hopefully I can be of help.

I had this problem as well and found a workaround (I mentioned it in a prior thread).

When compiling, include:

or whatever version you're using. If you're following along with the book, I assume you're using 1.3.1.

so basically the line would read:



I don't know if there is a better solution, but this worked for me.
Aruna Rao
Greenhorn

Joined: Feb 25, 2003
Posts: 10
Hi,
the solution helped in compiling the java file. but what should u do if you get Exception in thread "main" java.lang.NoClassDefFoundError: AdviceClient while running it?
Pranav Gorak
Greenhorn

Joined: Jun 05, 2011
Posts: 4
Hey,

I am stuck up right at the same place... NoClassDefFoundError...

Did you find a way out for that... Please let let me know...

Can anyone Help??
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: package javax.ejb.*; does not exist