wood burning stoves 2.0*
The moose likes Java in General and the fly likes error in compiling, ejb Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "error in compiling, ejb" Watch "error in compiling, ejb" New topic

error in compiling, ejb

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
help please,

javac cant seem to find javax.ejb package

comments please on what i have to do....

heres the dump

C:\angeles jesus mobile\home laptop\learning java scbcd\head first book\work\pro
jects\advice\src>javac -d ../classes headfirst/*.java
headfirst/Advice.java:3: package javax.ejb does not exist
import javax.ejb.*;
headfirst/Advice.java:6: cannot resolve symbol
symbol : class EJBObject
location: interface headfirst.Advice
public interface Advice extends EJBObject {
headfirst/AdviceBean.java:3: package javax.ejb does not exist
import javax.ejb.*;
headfirst/AdviceBean.java:5: cannot resolve symbol
symbol : class SessionBean
location: class headfirst.AdviceBean
public class AdviceBean implements SessionBean {
headfirst/AdviceBean.java:22: cannot resolve symbol
symbol : class SessionContext
location: class headfirst.AdviceBean
public void setSessionContext(SessionContext ctx) {
headfirst/AdviceHome.java:3: package javax.ejb does not exist
import javax.ejb.*;
headfirst/AdviceHome.java:6: cannot resolve symbol
symbol : class EJBHome
location: interface headfirst.AdviceHome
public interface AdviceHome extends EJBHome {
headfirst/AdviceHome.java:8: cannot resolve symbol
symbol : class CreateException
location: interface headfirst.AdviceHome
public Advice create() throws CreateException, RemoteException;
8 errors
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30138

Do you have j2ee.jar in your classpath?

[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
I agree. Here's the link: http://aspose.com/file-tools
subject: error in compiling, ejb
Similar Threads
NeedJ2EE 1.3 RI server Installation Help
error compiling ejb, first time prompt compile
having issues with compile for AdviceBean from HF EJB
AdviceBean - compile time erorr
Trying to Compile code From "Head First EJB"