如何使用 Eclipse 在 Windows 上使用 RMI 命令 运行 Java SE 6

How to run Java SE 6 with RMI commands on Windows with Eclipse

我有一台装有 Eclipse 的 Windows 机器,我得到了以下说明:

i) run

/usr/java/latest/bin/rmiregistry &

to enable RMI registration;

ii) run

java -classpath poi-3.7-20101029.jar: -Djava.rmi.server.hostname=127.0.0.1 >comp34120.ex2.Main &

to run the GUI of the platform;

iii) run

java -Djava.rmi.server.hostname=127.0.0.1 SimpleLeader &

to run the SimpleLeader.

And after these steps, you can play with the GUI to get some ideas of how the >platform works.

如何在我的机器上运行这些命令?

& 最后是 Linux for START.

SET "PATH=C:\path\to\java6\bin;%PATH%"

START rmiregistry

START java -classpath poi-3.7-20101029.jar;. -Djava.rmi.server.hostname=127.0.0.1 comp34120.ex2.Main

START java -Djava.rmi.server.hostname=127.0.0.1 SimpleLeader

第一行只有在没有的情况下才需要,即 PATH 中的第一行。