Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Errors on Compiling the EJB Client

 
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
Marshal
Posts: 34095
337
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic