This week's book giveaway is in the Design forum.
We're giving away four copies of Experimentation for Engineers: From A/B testing to Bayesian optimization and have David Sweet on-line!
See this thread for details.
  • 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:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

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??
 
Legend has it that if you rub the right tiny ad, a genie comes out.
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic