myrmiserver.java

来自「Long-distance rmi transfers java to real」· Java 代码 · 共 29 行

JAVA
29
字号
package com.antbang.rmilab;/* * To change this template, choose Tools | Templates * and open the template in the editor. *//** * * @author GAGA */public class MyRMIServer{    public static void main(String[] argv)    {        try        {            Runtime.getRuntime().exec("rmiregistry");            MyRMIImpl implementation = new MyRMIImpl("myRMIImplInstance");        } catch (Exception e)        {            System.out.println("Exception occurred: " + e);            e.printStackTrace();        }    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?