<script type="text/javascript"> google_ad_client = "pub-8800625213955058"; /* 336x280, 创建于 07-11-21 */ google_ad_slot = "0989131976"; google_ad_width = 336; google_ad_height = 280; // </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> //本地接口 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; } //我该如何解决此问题
初学j2ee的人都会遇到这样的问题,您是如何解决的呢?
最新推荐文章于 2024-02-26 10:03:07 发布