当前位置: 技术问答>java相关
一般安装J2SDK都没有javax.ejb这个包吗?大家来看看这个错误:
来源: 互联网 发布时间:2015-05-08
本文导语: Cabin.java:5: package javax.ejb does not exist public interface Cabin extends javax.ejb.EJBObject { 1 error 文件: package com.titan.cabin; import java.rmi.RemoteException; public interface Cabin extends javax.ejb.EJBObject { public String getName()...
Cabin.java:5: package javax.ejb does not exist
public interface Cabin extends javax.ejb.EJBObject {
1 error
文件:
package com.titan.cabin;
import java.rmi.RemoteException;
public interface Cabin 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 getShip() throws RemoteException;
public void setShip(int sp) throws RemoteException;
public int getBedCount() throws RemoteException;
public void setBedCount(int bc) throws RemoteException;
}
public interface Cabin extends javax.ejb.EJBObject {
1 error
文件:
package com.titan.cabin;
import java.rmi.RemoteException;
public interface Cabin 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 getShip() throws RemoteException;
public void setShip(int sp) throws RemoteException;
public int getBedCount() throws RemoteException;
public void setBedCount(int bc) throws RemoteException;
}
|
www.sun.com
上面有JAVAX。EJB。JAR这个包
你下载下来放到JDK/LIB/里面试试看
上面有JAVAX。EJB。JAR这个包
你下载下来放到JDK/LIB/里面试试看
|
是啊,当然没有了,得安装j2sdkee啊,或者用别的application server