The following code(CabinRemote.cpp) is extracted from the book enterprise javabeans. I 'm trying to compile it. But I got the following error:
================
CabinRemote.java:5: package javax.ejb does not exist
public interface CabinRemote extends javax.ejb.EJBObject {
^
1 error
==================
Following is the env. variables in my system:
CLASS_PATH=c:\j2ee1.3\lib;c:\java1.4\lib; c:\java1.4\jdk\lib;c:\j2ee1.3\lib\j2ee.jar
------------------CabinRemote.cpp -----------------
package com.titan.cabin;
import java.rmi.RemoteException;
public interface CabinRemote extends javax.ejb.EJBObject {
public
String getName() throws RemoteException;
public void setName(String str) throws RemoteException;
public int getDeckLevel() throws RemoteException;
public void setDeckLevel(int level) throws RemoteException;
public int getShipId() throws RemoteException;
public void setShipId(int sp) throws RemoteException;
public int getBedCount() throws RemoteException;
public void setBedCount(int bc) throws RemoteException;
}