Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Errors on Compiling the EJB Client  RSS feed

 
Chao Garreson
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
C:\EjbProject\Ejb1>javac -classpath "AdviceAppClient.jar" AdviceClient.java
AdviceClient.java:5: package javax.ejb does not exist
import javax.ejb.*;
^
AdviceClient.java:15: cannot access javax.ejb.EJBHome
file javax\ejb\EJBHome.class not found
Advice advisor=home.create();
^
AdviceClient.java:16: cannot access javax.ejb.EJBObject
file javax\ejb\EJBObject.class not found
System.out.println(advisor.getHello());
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chao,
Welcome to JavaRanch!

You need to add j2ee.jar to your classpath (or to the system classpath.)

[edited to fix typo]
[ August 24, 2005: Message edited by: Jeanne Boyarsky ]
 
Chao Garreson
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your help, Jeanne.

Problems are done
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!