您的位置:首页 > 其它

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

2008-05-24 02:34 447 查看
google_ad_client = "pub-8800625213955058";

/* 336x280, 创建于 07-11-21 */

google_ad_slot = "0989131976";

google_ad_width = 336;

google_ad_height = 280;

//

//本地接口

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;

}

//我该如何解决此问题
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐