Topic: rmic 在命令行下的问题?

  Print this page

1.rmic 在命令行下的问题? Copy to clipboard
Posted by: bluebaby
Posted on: 2005-01-27 01:05

我是照着api里头的guide下做到
但是在里头的要生成HelloImpl_Stub.class和Hello_Skel.class
怎么弄都不行
javac在命令行下可以生成class文件

在命令行如下

E:\getStart>rmic examples.hello.HelloImpl
error: Class examples.hello.HelloImpl not found.
1 error
E:\getStart>

文件组织放在
E:\getStart\examples\hello

Hello.java
Hello.class
HelloImpl.java
HelloImpl.class

代码

package examples.hello;

import java.rmi.Remote;
import java.rmi.RemoteException;

public interface Hello extends Remote {
  String sayHello() throws RemoteException;
}

  package examples.hello;
  
  import java.rmi.Naming;
  import java.rmi.RemoteException;
  import java.rmi.RMISecurityManager;
  import java.rmi.server.UnicastRemoteObject;
  
  public class HelloImpl extends UnicastRemoteObject
implemnets Hello {
//
}

2.Re:rmic 在命令行下的问题? [Re: bluebaby] Copy to clipboard
Posted by: bluebaby
Posted on: 2005-01-27 01:10

我也知道在j2sdk1.5.0下没有===_skel.classl
所以用了1.4.2的


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923