• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can't compile the code in HFEJB

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

I am starting the prepartion. I am trying to develop the project from HEFJB. But I am not able to compile it.
I have jdk1.3.1 & j2sdkee1.3.1 installed and I have put the j2ee.jar in classpath.
my classpath has "D:\j2sdkee1.3.1\lib\j2ee.jar;D:\jdk1.3.1\bin"
& path has "D:\jdk1.3.1\bin;D:\j2sdkee1.3.1\bin;"

I am getting errors in all the 3 .java files.The errors are
"can not find class ejb/EJBObject"
"can not resolve symbol SessionBean"
etc

can anyone please tell me what do I need to do here to solve this
thanks a bunch in advance
-Vrunda
 
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
doublecheck your classpath. j2ee.jar is definitely missing. Either it's not there or it's somewhere else from what you have on your classpath (you'd not be the first to suffer from typos in their classpaths).
 
Vrunda Joshi
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey Jeroen T Wenting,

Thanks for your reply. I double checked my classpath.I can understand how it can get irritating with a single mistypped letter. As it's happening with me I have properly checked the typos.

The file is there where my classpath points to. But still no luck.

What else can I do?

Thanks
-Vrunda
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1) the bin directory of the JDK doesn't belong on the classpath.
2) the directory containing your sourcecode does belong on the classpath.

might not help, but it's a start. And as j2ee.jar contains those classes, if you get that error it's NOT on the classpath as far as the compiler is concerned (or you have a very weird version of j2ee.jar that doesn't contain EJB related classes).
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes Jeroen is correct. To the existing classpath , just also add the directory path you want to place your classfiles
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic