• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

package javax.ejb.*; does not exist

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

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

Rgds,

Seetesh
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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??
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic