?? startup.java
字號:
import javax.naming.*;
/**
* A helper class which starts our RMI-IIOP server
*/
public class Startup {
/**
* Our main() method starts things up
*/
public static void main(String args[]) throws Exception {
/*
* Start up our PKGenerator remote object. It will
* automatically export itself.
*/
PKGenerator generator = new PKGenerator();
/*
* Bind our PKGenerator remote object to the JNDI tree
*/
Context ctx = new InitialContext(System.getProperties());
ctx.rebind("PKGenerator", generator);
System.out.println("PKGenerator bound to JNDI tree.");
synchronized (generator) {
generator.wait();
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -