• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't compile the code in HFEJB

 
Vrunda Joshi
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • 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
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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).
 
Charlie A
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic