run.bat

来自「精通RMI 这是RMI的入门基础 特别对刚开始学RMI的同胞们很有帮助」· Batch 代码 · 共 16 行

BAT
16
字号
@echo off
rem If you don't add server.jar to classpath, then rmiregistry will not
rem be able to bind the server stub, due to ClassNotFoundException's

start rmiregistry

echo Press any key when the registry is started to continue
pause
start java -jar server.jar

echo Press any key when the server is started to continue
pause
java -jar client.jar

pause

⌨️ 快捷键说明

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