aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29219
    
135

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Errors on Compiling the EJB Client
 
Similar Threads
msg package javax.ejb.* does not exist
Chap 1 HF EJB
AdviceClient Solution
help on compile ejb client
Advice Client problem