GeeCON Prague 2014*
The moose likes EJB and other Java EE Technologies and the fly likes Errors on Compiling the EJB Client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Errors on Compiling the EJB Client" Watch "Errors on Compiling the EJB Client" New topic
Author

Errors on Compiling the EJB Client

Chao Garreson
Greenhorn

Joined: Aug 24, 2005
Posts: 6
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

Joined: May 26, 2003
Posts: 30586
    
154

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 ]

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Chao Garreson
Greenhorn

Joined: Aug 24, 2005
Posts: 6
Thanks for your help, Jeanne.

Problems are done
 
Don't get me started about those stupid light bulbs.
 
subject: Errors on Compiling the EJB Client