Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Problem compiling simple standalone client for EJB.

Ranch Hand
Posts: 511
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I am running the J2EE 1.3 Reference Implementation under WinXP. I have the following directory structure:

F:\Java Projects\J2EE Projects\Advice\

underneath the Advice directory, I have the following 3 subdirectories:


I followed everything that the book wanted me to do and now I am stuck on the point where you compile the client app.

The AdviceAppClient.jar & AdviceApp.ear are in the <dist> subdirectory.

All the interpreted bytecode (.class files) are in the <cls> subdirectory.

The file is in the <src> directory.

Now, when I tried to compile the file like this:

F:\Java Projects\J2EE Projects\Advice\src>javac -classpath %CLASSPATH%;..\dist\AdviceAppClient.jar;..\cls cannot access AdviceHome
bad class file: .\
file does not contain class AdviceHome

Please remove or make sure it appears in the correct subdirectory of the classpath.

AdviceHome home = (AdviceHome)PortableRemoteObject.narrow(o, AdviceHome.class);
1 error

Does anyone understand what's going on?

With thanks,
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ,
Can you please re-chek your CLASSPATH does it includes your current directory. I feel it is mssing, which create issue for AdviceHome
Time flies like an arrow. Fruit flies like a banana. Steve flies like a tiny ad:
Garden Master Course kickstarter
    Bookmark Topic Watch Topic
  • New Topic