//本地接口 package securitybeans; import java.rmi.RemoteException; import javax.ejb.EJBHome; import javax.ejb.CreateException; public interface SecurityHome extends EJBHome{ Security create() throws CreateException, RemoteException; } 编译后出的错误信息如下: SecurityHome.java:6cannot resolve symbol symbol :class Security location : interface securitybeans.SecurityHome Security create()throws CreateException, RomoteException; ^ 1 error //Security是远程接口,已编译生成了Security.class文件,并和Security.java在同一目录下 Security.java源代码如下: package securitybeans; import java.rmi.RemoteException; import javax.ejb.EJBObject; public interface Security extends EJBObject{ public String encrypt( String strSource ) throws RemoteException; public String decrypt( String strTarget ) throws RemoteException; } //我该如何解决此问题 (责任编辑:包春林)
|