0

我正在一个项目中工作,我们是否编写了 Java RMI-IIOP 服务器和 da CORBA-C++ 客户端。我们使用 rmic -idl 从我们的 Java 接口生成 IDL。但是我认为我们的接口有问题,因为当我们编译生成的 idl 时,我们得到了以下错误:

./WishlistInterface.idl:33: java/io/FileNotFoundEx.idl: No such file or directory
./WishlistInterface.idl:102: java/util/ArrayList.idl: No such file or directory
./WishlistInterface.idl:103: java/io/File.idl: No such file or directory
./WishlistInterface.idl:80: scoped name '::java::io::FileNotFoundEx' not defined

这是我们的界面:

import java.io.File;
import java.io.FileNotFoundException;
import java.rmi.RemoteException;
import java.util.ArrayList;

public interface WishlistInterface extends java.rmi.Remote {

public int secureLogin(String username, long checksum) throws RemoteException;
public ArrayList<Wish> getUnreceivedWishes(String username)throws RemoteException;
public void createWishlist(String wishlistTitle) throws RemoteException;          
public File downloadWishlist(String wishlistTitle, String username) throws FileNotFoundException, RemoteException;           
public void logout(String username) throws RemoteException;   
}

有谁知道,到底是什么问题?谢谢!

4

0 回答 0