diff --git a/bin/j4/ClockImpl.class b/bin/j4/ClockImpl.class index 5d8488e..9deb319 100644 --- a/bin/j4/ClockImpl.class +++ b/bin/j4/ClockImpl.class Binary files differ diff --git a/bin/j5/Sample.class b/bin/j5/Sample.class index 4bd9141..f7b926c 100644 --- a/bin/j5/Sample.class +++ b/bin/j5/Sample.class Binary files differ diff --git a/src/j4/ClockImpl.java b/src/j4/ClockImpl.java index 9f0b82d..fdbc6a9 100644 --- a/src/j4/ClockImpl.java +++ b/src/j4/ClockImpl.java @@ -24,7 +24,7 @@ //----------------------------- public String putTime(){ // 現在の時刻を返す Date d = new Date() ; - System.out.println(d); + //System.out.println(d); return d.toString() ; } } // end of ClockImpl diff --git a/src/j5/Sample.java b/src/j5/Sample.java index ab04cbc..2900f65 100644 --- a/src/j5/Sample.java +++ b/src/j5/Sample.java @@ -7,6 +7,6 @@ close(); // 後処理 } static void open (String s) { } - void proc () { } - void close () { } + static void proc () { } + static void close () { } } diff --git a/src/run5-1.sh b/src/run5-1.sh new file mode 100755 index 0000000..7353cef --- /dev/null +++ b/src/run5-1.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +javac -encoding UTF-8 j5/*.java + +echo "rmiregistry" +# rmiregistry & + +sleep 1 + +echo "run ClockServer" +java j4/ClockServer + + +# java j4/MyFTP 127.0.0.1 + +#echo "type return to exit" +#read input_str +