初学j2ee的人都会遇到这样的问题,您是如何解决的呢?
来源:网络 更新时间:2014-12-6
//本地接口
packagesecuritybeans;
importJava.rmi.RemoteException;
importjavax.EJB.EJBHome;
importjavax.ejb.CreateException;
publicinterfaceSecurityHomeextendsEJBHome{
Securitycreate()throwsCreateException,RemoteException;
}
编译后出的错误信息如下:
SecurityHome.java:6cannotresolvesymbol
symbol:classSecurity
location:interfacesecuritybeans.SecurityHome
Securitycreate()throwsCreateException,RomoteException;
^
1error
//Security是远程接口,已编译生成了Security.class文件,并和Security.java在同一目录下
Security.java源代码如下:
packagesecuritybeans;
importjava.rmi.RemoteException;
importjavax.ejb.EJBObject;
publicinterfaceSecurityextendsEJBObject{
publicStringencrypt(StringstrSource)throwsRemoteException;
publicStringdecrypt(StringstrTarget)throwsRemoteException;
}
//我该如何解决此问题