You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
280 B
Java
14 lines
280 B
Java
5 years ago
|
import java.java.rmi.RemoteException;
|
||
|
|
||
|
public class SeCalc {
|
||
|
|
||
|
public static void main(String[] args) throws Exception {
|
||
|
java.rmi.registry.LocateRegistry.createRegistry(1099);
|
||
|
|
||
|
CalcImpl x = new CalcImpl();
|
||
|
|
||
|
java.rmi.Naming.rebind("rmi://127.0.0.1/SeCalc", x);
|
||
|
}
|
||
|
|
||
|
}
|