初学j2ee的人都会遇到这样的问题,您是如何解决的呢?

发表于:2007-06-21来源:作者:点击数: 标签:
//本地接口 package securitybeans; import java .rmi.RemoteException; import javax.ejb.EJBHome; import javax.ejb.CreateException; public interface SecurityHome extends EJBHome{ Security create() throws CreateException, RemoteException; } 编

   
  //本地接口
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;
}
//我该如何解决此问题

原文转自:http://www.ltesting.net