Nov 17, 2003

             onlsbc1, Debian GNU/Linux3.0 のインストール(その4)
          			---  インストール #19
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               (http://www-online.kek.jp/~inoue/para-CAMAC/
                                   Work/SBC-Linux23.html)



                        高エネルギー加速器研究機構
                            素粒子原子核研究所
                         物理、オンライングループ
                                井上 栄二

        目的

	    SBC-Linux22.html で作成した Debian GNU/Linux3.0 のシステムの一部修正
	  の作業を行う。 先に作成したシステムでは、JavaRMIが正常に動作しない。
	    JavaRMIのネーミングサービスでリモートマシンを認識できない。 これは
	  システムライブラリのバージョンが古いためにおきている可能性が考えられ
	    る。 システムライブラリのアップグレードして、JavaRMIが正しく動作
	    できるかどうかを調べる。


        (1). テスト構成
        (2). apt の設定
        (3). システムライブラリのアップグレード
        (4). JavaRMIの動作テスト
        (5). BlackDown Java のインストール
        (6). BlackDown Java を使った JavaRMIの動作テスト
        (7). BlackDown Java を Debianパッケージでインストールし直す

  --------------------------------------------------------------------


 (1). テスト構成

	テストは2.5"IDEハードディスク上で行う。 作業の途中で必要なワークエリア
	には NFSマウントしたマシン onlpara の資源を使用する。

onlsbc1:/etc/apt# df -k
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda1               545484    401040    116736  78% /
onlpara:/home2/onlpara-wrk
                      22659864   3650584  17858224  17% /mnt1
onlsbc1:/etc/apt#


 (2). apt の設定

onlsbc1:/etc/apt# pwd
/etc/apt
onlsbc1:/etc/apt# ls -l
total 44
-rw-r--r--    1 root     root          532 Nov 11 16:36 apt.conf
-rw-r--r--    1 root     root          532 Nov 11 14:38 apt.conf-bak
-rw-r--r--    1 root     root          497 Nov 10 17:14 apt.conf-inoue
drwxr-xr-x    2 root     root         4096 Nov 11 14:20 apt.conf.d
-rw-r--r--    1 root     root           54 Nov 11 14:22 preferences
-rw-r--r--    1 root     root         1059 Nov 13 09:32 sources.list
-rw-r--r--    1 root     root          883 Nov 13 08:58 sources.list-Nov132003
-rw-r--r--    1 root     root         1002 Nov 13 09:09 sources.list-Nov132003a
-rw-r--r--    1 root     root         1090 Nov 11 16:34 sources.list-bak
-rw-r--r--    1 root     root          763 Nov 11 16:38 sources.list-bak2
-rw-r--r--    1 root     root          763 Nov 11 14:43 sources.list-org
onlsbc1:/etc/apt#

	Debian のディストリビューションパッケージには、
	  安定版 (stable) 
	  テスト版 (testing)
	  不安定版 (unstable) 
	がある。 現在、onlsbc1上にインストールしてあるシステムは、"安定版" で
	ある。 ベースは"安定版"にしておいて、一部のパッケージを "テスト版" から	流用する。 そのための apt設定をする。

onlsbc1:/etc/apt# cat apt.conf
// $Id: apt.conf,v 1.43 1999/12/06 02:19:38 jgg Exp $
/* This file is a sample configuration file with a few harmless sample
   options.
*/

APT
{
  // Options for apt-get
  Get
  {
     Download-Only "false";
     APT::Cache-Limit "100000000";
  };


};

// Options for the downloading routines
Acquire
{
  Retries "0";
};

// Things that effect the APT dselect method
DSelect
{
  Clean "auto";   // always|auto|prompt|never
};

DPkg
{
  // Probably don't want to use force-downgrade..
  Options {"--force-overwrite";}
}
onlsbc1:/etc/apt#

onlsbc1:/etc/apt# cat preferences
Package: *
Pin: release a=stable
Pin-Priority: 1001


onlsbc1:/etc/apt#

onlsbc1:/etc/apt# cat sources.list

deb http://ftp.jp.debian.org/debian/ stable main contrib non-free
#deb-src http://ftp.jp.debian.org/debian/ stable main
deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
#deb-src http://non-us.debian.org/debian-non-US stable/non-US main
deb http://ftp.jp.debian.org/debian-jp stable-jp main contrib non-free

deb http://security.debian.org/ stable/updates main contrib non-free

#deb http://www.stud.uni-karlsruhe.de/~ude2 debian/

#deb ftp://sunsite.auc.dk/pub/languages/java/java-linux/debian testing main non-
free

#deb http://ftp.jp.debian.org/debian/ testing main

deb http://ftp.debian.or.jp/debian testing main contrib non-free
#deb http://ftp.jp.debian.org/debian testing main contrib non-free
#deb http://ftp.jp.debian.org/debian testing main
deb http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free
#deb http://non-us.debian.org/debian-non-US testing/non-US main
deb http://ftp.jp.debian.org/debian-jp testing-jp main contrib non-free
#deb http://ftp.jp.debian.org/debian-jp testing-jp main

onlsbc1:/etc/apt#

	パッケージリストを更新し, stable(Woody)の最新のパッケージに更新する。

onlsbc1:/etc/apt# apt-get update
Hit http://ftp.debian.or.jp testing/main Packages
Hit http://ftp.debian.or.jp testing/main Release
Hit http://ftp.debian.or.jp testing/contrib Packages
Hit http://ftp.debian.or.jp testing/contrib Release
Hit http://ftp.debian.or.jp testing/non-free Packages
Hit http://ftp.debian.or.jp testing/non-free Release
Hit http://ftp.jp.debian.org stable/main Packages
Hit http://ftp.jp.debian.org stable/main Release
Hit http://ftp.jp.debian.org stable/contrib Packages
Hit http://ftp.jp.debian.org stable/contrib Release
Hit http://ftp.jp.debian.org stable/non-free Packages
Hit http://ftp.jp.debian.org stable/non-free Release
Hit http://ftp.jp.debian.org stable-jp/main Packages
Hit http://ftp.jp.debian.org stable-jp/main Release
Hit http://ftp.jp.debian.org stable-jp/contrib Packages
Hit http://ftp.jp.debian.org stable-jp/contrib Release
Hit http://security.debian.org stable/updates/main Packages
Hit http://security.debian.org stable/updates/main Release
Hit http://security.debian.org stable/updates/contrib Packages
Hit http://security.debian.org stable/updates/contrib Release
Hit http://security.debian.org stable/updates/non-free Packages
Hit http://security.debian.org stable/updates/non-free Release
Hit http://non-us.debian.org stable/non-US/main Packages
Hit http://non-us.debian.org stable/non-US/main Release
Hit http://non-us.debian.org stable/non-US/contrib Packages
Hit http://non-us.debian.org stable/non-US/contrib Release
Hit http://non-us.debian.org stable/non-US/non-free Packages
Hit http://non-us.debian.org stable/non-US/non-free Release
Hit http://non-us.debian.org testing/non-US/main Packages
Hit http://non-us.debian.org testing/non-US/main Release
Hit http://non-us.debian.org testing/non-US/contrib Packages
Hit http://non-us.debian.org testing/non-US/contrib Release
Hit http://ftp.jp.debian.org stable-jp/non-free Packages
Hit http://ftp.jp.debian.org stable-jp/non-free Release
Hit http://ftp.jp.debian.org testing-jp/main Packages
Ign http://ftp.jp.debian.org testing-jp/main Release
Hit http://ftp.jp.debian.org testing-jp/contrib Packages
Ign http://ftp.jp.debian.org testing-jp/contrib Release
Hit http://ftp.jp.debian.org testing-jp/non-free Packages
Ign http://ftp.jp.debian.org testing-jp/non-free Release
Hit http://non-us.debian.org testing/non-US/non-free Packages
Hit http://non-us.debian.org testing/non-US/non-free Release
Reading Package Lists... Done
Building Dependency Tree... Done
onlsbc1:/etc/apt#

onlsbc1:/etc/apt# apt-get -u dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
The following NEW packages will be installed:
  initscripts
0 packages upgraded, 1 newly installed, 0 to remove and 0  not upgraded.
Need to get 15.1kB of archives. After unpacking 168kB will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.debian.or.jp testing/main initscripts 2.85-7 [15.1kB]
Fetched 15.1kB in 1s (10.1kB/s)
Selecting previously deselected package initscripts.
(Reading database ... 15094 files and directories currently installed.)
Unpacking initscripts (from .../initscripts_2.85-7_all.deb) ...
Replacing files in old package sysvinit ...
Setting up initscripts (2.85-7) ...
Installing new version of config file /etc/init.d/bootmisc.sh ...
Installing new version of config file /etc/init.d/checkroot.sh ...
Installing new version of config file /etc/init.d/mountall.sh ...
Installing new version of config file /etc/init.d/rmnologin ...
Installing new version of config file /etc/init.d/single ...
Installing new version of config file /etc/init.d/umountfs ...
Installing new version of config file /etc/init.d/umountnfs.sh ...

onlsbc1:/etc/apt#


 (3). システムライブラリのアップグレード

onlsbc1:/etc/apt# apt-get install -u libc6/testing
Reading Package Lists... Done
Building Dependency Tree... Done
Selected version 2.3.2-9 (Debian:testing) for libc6
The following extra packages will be installed:
  libc6 libdb1-compat
The following packages will be REMOVED:
  g++ g++-2.95 libc6-dev libnss-db libstdc++2.10-dev locales
The following NEW packages will be installed:
  libdb1-compat
The following packages will be upgraded
  libc6
1 packages upgraded, 1 newly installed, 6 to remove and 0  not upgraded.
Need to get 3761kB of archives. After unpacking 25.4MB will be freed.
Do you want to continue? [Y/n] y
Get:1 http://ftp.debian.or.jp testing/main libdb1-compat 2.1.3-7 [30.8kB]
Get:2 http://ftp.debian.or.jp testing/main libc6 2.3.2-9 [3730kB]
Fetched 3761kB in 18s (204kB/s)
(Reading database ... 15101 files and directories currently installed.)
Removing libnss-db ...
Removing locales ...
Removing g++ ...
Removing g++-2.95 ...
Removing libstdc++2.10-dev ...
Removing libc6-dev ...
Selecting previously deselected package libdb1-compat.
(Reading database ... 13321 files and directories currently installed.)
Unpacking libdb1-compat (from .../libdb1-compat_2.1.3-7_i386.deb) ...
Replacing files in old package libc6 ...
Preparing to replace libc6 2.2.5-11.5 (using .../libc6_2.3.2-9_i386.deb) ...

Name Service Switch has changed in the C Library: pre-installation question.

Running programs may not be able to do NSS lookups until they are restarted.
Some services can not accept all authentication after extracting glibc
package into your system.  This script automatically restarts some packages
for example ssh or telnetd, but other packages for example xdm
cannot restart because if it restarts automatically, then your X11 session
is disconnected.  So you have to logout and stop xdm; you have to
restart all such services after upgrading libc6 with your hands.
Known packages that are needed to stop before installing glibc 2.3:
        xdm kdm gdm postgresql xscreensaver

This script does not detect services which need to stop.
If you want to stop upgrade for the present, please answer the below
question as No.

Do you want to upgrade glibc? [Y/n] y

Unpacking replacement libc6 ...
Setting up libc6 (2.3.2-9) ...
Checking for services that may need to be restarted...done.

Name Service Switch has changed in the C Library: post-installation question.
Running programs may not be able to do NSS lookups until they are
restarted (for services such as ssh, this can affect your ability to
login).
Note: restarting sshd/telnetd should not affect any existing connections.

The services detected are: inetd cron ssh

If other services begin to fail mysteriously after this upgrade,
it may be necessary to restart them too.  We strongly recommend
you to reboot your machine to avoid the NSS related trouble.

Do you wish to Restart Services? [Y/n] y

Restarting services possibly affected by the upgrade:
  inetd: stopping...starting...done.
  cron: stopping...starting...done.
  ssh: stopping...starting...done.

Services restarted successfully.

Current default timezone: 'Asia/Tokyo'.
Local time is now:      Thu Nov 13 11:15:01 JST 2003.
Universal Time is now:  Thu Nov 13 02:15:01 UTC 2003.
Run 'tzconfig' if you wish to change it.

Setting up libdb1-compat (2.1.3-7) ...

onlsbc1:/etc/apt#

onlsbc1:/etc/apt# dpkg -l | grep libc
ii  libc6          2.3.2-9        GNU C Library: Shared libraries and Timezone
ii  libcap1        1.10-12        support for getting/setting POSIX.1e capabil
ii  libdb1-compat  2.1.3-7        The Berkeley database routines [glibc 2.0/2.
onlsbc1:/etc/apt#

	パッケージをホールドする。 このままだと apt-get upgradeすると,今まで
	インストールした testing のパッケージがすべてダウングレードされてしま
	うので,ダウングレードされないようにホールドしておく。

onlsbc1:/etc/apt# echo libc6 hold | dpkg --set-selections
onlsbc1:/etc/apt# echo libc6-dev hold | dpkg --set-selections
onlsbc1:/etc/apt# echo locales hold | dpkg --set-selections
onlsbc1:/etc/apt# echo g++ hold | dpkg --set-selections
onlsbc1:/etc/apt# echo cpp hold | dpkg --set-selections
onlsbc1:/etc/apt# echo g++-2.95 hold | dpkg --set-selections
onlsbc1:/etc/apt# echo libstdc++2.10-dev hold | dpkg --set-selections
onlsbc1:/etc/apt#


 (4). JavaRMIの動作テスト

	SUN J2SDK を再インストールする。

onlsbc1:/usr# pwd
/usr
onlsbc1:/usr# ls -l
total 48
drwxr-xr-x    5 root     root         4096 Oct  8 09:05 X11R6
drwxr-xr-x    2 root     root        12288 Nov 13 11:13 bin
drwxr-xr-x    4 root     root         4096 Nov 13 11:09 include
drwxr-xr-x    2 root     root         4096 Nov 13 11:09 info
drwxr-xr-x    9 root     root         4096 Nov 11 08:40 j2sdk1.4.1_02
lrwxrwxrwx    1 root     root           13 Nov 11 08:41 java -> j2sdk1.4.1_02
drwxr-xr-x   23 root     root         4096 Nov 13 11:13 lib
drwxrwsr-x   11 root     staff        4096 Sep  1 10:08 local
drwxr-xr-x    2 root     root         4096 Nov 13 11:13 sbin
drwxr-xr-x   55 root     root         4096 Nov 13 11:09 share
drwxrwsr-x    2 root     src          4096 Nov  6 17:20 src
onlsbc1:/usr# rm -rf java j2sdk1.4.1_02
onlsbc1:/usr# ls -l
total 44
drwxr-xr-x    5 root     root         4096 Oct  8 09:05 X11R6
drwxr-xr-x    2 root     root        12288 Nov 13 11:13 bin
drwxr-xr-x    4 root     root         4096 Nov 13 11:09 include
drwxr-xr-x    2 root     root         4096 Nov 13 11:09 info
drwxr-xr-x   23 root     root         4096 Nov 13 11:13 lib
drwxrwsr-x   11 root     staff        4096 Sep  1 10:08 local
drwxr-xr-x    2 root     root         4096 Nov 13 11:13 sbin
drwxr-xr-x   55 root     root         4096 Nov 13 11:09 share
drwxrwsr-x    2 root     src          4096 Nov  6 17:20 src
onlsbc1:/usr#

onlsbc1:/usr# ls /mnt1/root
Debian                                j2sdk-1_4_2_01-linux-i586.bin
build                                 j2sdk1.4.1_02
compact-debian-Nov122003g.tar.gz      j2sdk1.4.2_01-inoue.tar.gz
compact-debian-Nov52003g.tar.gz       j2sdk1.4_1.4.2.01-0.13_i386.changes
compact-debian-oct162003.tar.gz       j2sdk1.4_1.4.2.01-0.13_i386.deb
compact-debian-oct172003.tar.gz       kernel-source-2.4.18-inoue.tar
compact-debian-oct202003A.tar.gz      knoppix
compact-debian-oct212003.tar.gz       libc6-dev_2.3.2-9_i386.deb
compact-debian-oct212003g.tar.gz      libc6_2.3.2-9_i386.deb
compact-debian-oct222003g.tar.gz      linux-2.4.18-14
compact-debian-oct232003g.tar.gz      onlsbc1
compact-debian-oct232003g.tar.gz-old  onlsbc2
compact-debian-oct302003g.tar.gz      src
compact.tar.gz                        t5
hdlist                                t6
hdlist2                               t7
j2sdk-1_4_1_02-linux-i586.bin         tmp
onlsbc1:/usr#

onlsbc1:/usr# /mnt1/root/j2sdk-1_4_1_02-linux-i586.bin
   Sun Microsystems, Inc.  Binary Code License Agreement

READ  THE  TERMS  OF  THIS   AGREEMENT   AND  ANY   PROVIDED
SUPPLEMENTAL   LICENSE  TERMS   (COLLECTIVELY   "AGREEMENT")
CAREFULLY  BEFORE  OPENING THE SOFTWARE  MEDIA  PACKAGE.  BY
OPENING THE SOFTWARE  MEDIA  PACKAGE, YOU AGREE TO THE TERMS
OF  THIS  AGREEMENT.  IF  YOU  ARE  ACCESSING  THE  SOFTWARE
ELECTRONICALLY,  INDICATE YOUR  ACCEPTANCE OF THESE TERMS BY
SELECTING THE "ACCEPT" BUTTON AT THE END OF THIS  AGREEMENT.
IF YOU DO NOT AGREE TO ALL THESE TERMS, PROMPTLY  RETURN THE
UNUSED  SOFTWARE TO YOUR PLACE OF PURCHASE  FOR A REFUND OR,
IF THE  SOFTWARE  IS  ACCESSED  ELECTRONICALLY,  SELECT  THE
"DECLINE" BUTTON AT THE END OF THIS AGREEMENT.

1.  LICENSE TO USE.  Sun grants you a non-exclusive and non-
transferable  license  for  the  internal  use  only  of the
accompanying   software  and  documentation  and  any  error
corrections  provided by Sun  (collectively  "Software"), by
the number of users and the class of computer  hardware  for
which the corresponding fee has been paid.

2.  RESTRICTIONS.  Software is confidential and copyrighted.
		:
		:
  inflating: j2sdk1.4.1_02/man/ja_JP.eucJP/man1/jdb.1
  inflating: j2sdk1.4.1_02/man/ja_JP.eucJP/man1/native2ascii.1
  inflating: j2sdk1.4.1_02/man/ja_JP.eucJP/man1/rmic.1
  inflating: j2sdk1.4.1_02/man/ja_JP.eucJP/man1/serialver.1
  inflating: j2sdk1.4.1_02/man/ja_JP.eucJP/man1/idlj.1
Done.
onlsbc1:/usr#

onlsbc1:/usr# ln -s j2sdk1.4.1_02 java
onlsbc1:/usr# ls -l
total 48
drwxr-xr-x    5 root     root         4096 Oct  8 09:05 X11R6
drwxr-xr-x    2 root     root        12288 Nov 13 11:13 bin
drwxr-xr-x    4 root     root         4096 Nov 13 11:09 include
drwxr-xr-x    2 root     root         4096 Nov 13 11:09 info
drwxr-xr-x    9 root     root         4096 Nov 13 14:28 j2sdk1.4.1_02
lrwxrwxrwx    1 root     root           13 Nov 13 14:29 java -> j2sdk1.4.1_02
drwxr-xr-x   23 root     root         4096 Nov 13 11:13 lib
drwxrwsr-x   11 root     staff        4096 Sep  1 10:08 local
drwxr-xr-x    2 root     root         4096 Nov 13 11:13 sbin
drwxr-xr-x   55 root     root         4096 Nov 13 11:09 share
drwxrwsr-x    2 root     src          4096 Nov  6 17:20 src
onlsbc1:/usr#

inoue@onlsbc1:/usr$ which java
/usr/java/bin/java
inoue@onlsbc1:/usr$ java -version
java version "1.4.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
inoue@onlsbc1:/usr$

inoue@onlsbc1:~$ pwd
/home/inoue
inoue@onlsbc1:~$ export CLASSPATH=.:$HOME/public_html/myclasses:$HOME/JavaRMI/ge
tStart/examples/hello
inoue@onlsbc1:~$ printenv CLASSPATH
.:/home/inoue/public_html/myclasses:/home/inoue/JavaRMI/getStart/examples/hello
inoue@onlsbc1:~$

inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ pwd
/home/inoue/JavaRMI/getStart/examples/hello
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ ls -l
total 28
-rw-r--r--    1 inoue    inoue         175 Jun  5  1998 Hello.java
-rw-r--r--    1 inoue    inoue        1513 Nov 10 14:22 HelloApplet.java
-rw-r--r--    1 inoue    inoue         956 Jun  5  1998 HelloImpl.java
-rw-r--r--    1 inoue    inoue         245 Oct  1  1998 hello.html
-rw-r--r--    1 inoue    inoue          81 Nov 13 14:32 policy
-rw-r--r--    1 inoue    inoue         164 Nov 10 09:19 policy-bak
-rw-r--r--    1 inoue    inoue          81 Oct  1  1998 policy-org
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ javac -d $HOME/public_html/mycl
asses Hello.java HelloImpl.java HelloApplet.java
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ rmic -d $HOME/public_html/mycla
sses examples.hello.HelloImpl
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ ls -lR $HOME/public_html/myclas
ses
/home/inoue/public_html/myclasses:
total 4
drwxr-xr-x    3 inoue    inoue        4096 Nov  6 17:42 examples

/home/inoue/public_html/myclasses/examples:
total 4
drwxr-xr-x    2 inoue    inoue        4096 Nov 13 14:33 hello

/home/inoue/public_html/myclasses/examples/hello:
total 24
-rw-r--r--    1 inoue    inoue         224 Nov 13 14:33 Hello.class
-rw-r--r--    1 inoue    inoue        1287 Nov 13 14:33 HelloApplet.class
-rw-r--r--    1 inoue    inoue        1247 Nov 13 14:33 HelloImpl.class
-rw-r--r--    1 inoue    inoue        1448 Nov 13 14:33 HelloImpl_Skel.class
-rw-r--r--    1 inoue    inoue        2920 Nov 13 14:33 HelloImpl_Stub.class
-rw-r--r--    1 inoue    inoue          81 Nov 11 09:28 policy
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$

inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ cp hello.html $HOME/public_html
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ ls -l $HOME/public_html/hello.h
tml
-rw-r--r--    1 inoue    inoue         245 Nov 13 14:34 /home/inoue/public_html/
hello.html
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$

onlsbc1:/usr/local/apache2/htdocs# /usr/local/apache2/bin/apachectl start
onlsbc1:/usr/local/apache2/htdocs#

inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ pwd
/home/inoue/JavaRMI/getStart/examples/hello
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ rmiregistry &
[1] 1144
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Nov12 ?        00:00:04 init [2]
root         2     1  0 Nov12 ?        00:00:00 [keventd]
root         3     0  0 Nov12 ?        00:00:00 [ksoftirqd_CPU0]
root         4     0  0 Nov12 ?        00:00:00 [kswapd]
root         5     0  0 Nov12 ?        00:00:00 [bdflush]
root         6     0  0 Nov12 ?        00:00:00 [kupdated]
root         7     1  0 Nov12 ?        00:00:00 [i2oevtd]
root         8     1  0 Nov12 ?        00:00:03 [kjournald]
root        47     1  0 Nov12 ?        00:00:00 [khubd]
daemon     108     1  0 Nov12 ?        00:00:00 [portmap]
root       163     1  0 Nov12 ?        00:00:00 /sbin/syslogd
root       166     1  0 Nov12 ?        00:00:00 /sbin/klogd
root       171     1  0 Nov12 ?        00:00:00 /sbin/rpc.statd
root       182     1  0 Nov12 ?        00:00:00 /usr/sbin/lpd
inoue      198     1  0 Nov12 tty1     00:00:00 -bash
root       199     1  0 Nov12 tty2     00:00:00 /sbin/getty 38400 tty2
root       200     1  0 Nov12 tty3     00:00:00 /sbin/getty 38400 tty3
root       201     1  0 Nov12 tty4     00:00:00 /sbin/getty 38400 tty4
root       202     1  0 Nov12 tty5     00:00:00 /sbin/getty 38400 tty5
root       203     1  0 Nov12 tty6     00:00:00 /sbin/getty 38400 tty6
root       463     1  0 08:48 ?        00:00:00 /usr/sbin/sshd
inoue      465   463  0 08:49 ?        00:00:05 [sshd]
inoue      466   465  0 08:49 pts/0    00:00:00 -bash
root       570     1  0 09:12 ?        00:00:02 [rpciod]
root       571     1  0 09:12 ?        00:00:00 [lockd]
root       791     1  0 11:14 ?        00:00:00 /usr/sbin/inetd
root       800     1  0 11:14 ?        00:00:00 /usr/sbin/cron
root       815     1  0 11:15 ?        00:00:01 /usr/sbin/sshd
root      1138     1  0 14:54 ?        00:00:00 /usr/local/apache2/bin/httpd -k
nobody    1139  1138  0 14:54 ?        00:00:00 [httpd]
nobody    1140  1138  0 14:54 ?        00:00:00 [httpd]
nobody    1141  1138  0 14:54 ?        00:00:00 [httpd]
nobody    1142  1138  0 14:54 ?        00:00:00 [httpd]
nobody    1143  1138  0 14:54 ?        00:00:00 [httpd]
inoue     1144   466 27 14:55 pts/0    00:00:01 rmiregistry
inoue     1145  1144  0 14:55 pts/0    00:00:00 rmiregistry
inoue     1146  1145  0 14:55 pts/0    00:00:00 rmiregistry
inoue     1147  1145  0 14:55 pts/0    00:00:00 rmiregistry
inoue     1148  1145  0 14:55 pts/0    00:00:00 rmiregistry
inoue     1149  1145  0 14:55 pts/0    00:00:00 rmiregistry
inoue     1150  1145  0 14:55 pts/0    00:00:00 rmiregistry
inoue     1151  1145  0 14:55 pts/0    00:00:00 rmiregistry
inoue     1152  1145  2 14:55 pts/0    00:00:00 rmiregistry
inoue     1154  1145  0 14:55 pts/0    00:00:00 rmiregistry
inoue     1155  1145  0 14:55 pts/0    00:00:00 rmiregistry
inoue     1156   466  0 14:55 pts/0    00:00:00 ps -ef
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$

inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ java -Djava.rmi.server.codebase
=http://onlsbc1.kek.jp/~inoue/myclasses/ -Djava.security.policy=$HOME/JavaRMI/ge
tStart/examples/hello/policy examples.hello.HelloImpl
HelloServer bound in registry

	Webブラウザ、IEで "http://onlsbc1.kek.jp/~inoue/hello.html" に
        アクセスすると、"Naming.lookup: Failed"と表示される。 このメッセージは
	Naming.lookupでエラーになった時に表示されるように、私が追加したもの。

	Ctl-C で Hello サーバを止める。
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ kill -KILL 1144
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$
[1]+  Killed                  rmiregistry
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$

onlsbc1:/home/inoue/JavaRMI/getStart/examples/hello# /usr/local/apache2/bin/apac
hectl stop
onlsbc1:/home/inoue/JavaRMI/getStart/examples/hello#
onlsbc1:/home/inoue/JavaRMI/getStart/examples/hello# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Nov12 ?        00:00:04 init [2]
root         2     1  0 Nov12 ?        00:00:00 [keventd]
root         3     0  0 Nov12 ?        00:00:00 [ksoftirqd_CPU0]
root         4     0  0 Nov12 ?        00:00:00 [kswapd]
root         5     0  0 Nov12 ?        00:00:00 [bdflush]
root         6     0  0 Nov12 ?        00:00:00 [kupdated]
root         7     1  0 Nov12 ?        00:00:00 [i2oevtd]
root         8     1  0 Nov12 ?        00:00:03 [kjournald]
root        47     1  0 Nov12 ?        00:00:00 [khubd]
daemon     108     1  0 Nov12 ?        00:00:00 [portmap]
root       163     1  0 Nov12 ?        00:00:00 /sbin/syslogd
root       166     1  0 Nov12 ?        00:00:00 /sbin/klogd
root       171     1  0 Nov12 ?        00:00:00 /sbin/rpc.statd
root       182     1  0 Nov12 ?        00:00:00 /usr/sbin/lpd
inoue      198     1  0 Nov12 tty1     00:00:00 -bash
root       199     1  0 Nov12 tty2     00:00:00 /sbin/getty 38400 tty2
root       200     1  0 Nov12 tty3     00:00:00 /sbin/getty 38400 tty3
root       201     1  0 Nov12 tty4     00:00:00 /sbin/getty 38400 tty4
root       202     1  0 Nov12 tty5     00:00:00 /sbin/getty 38400 tty5
root       203     1  0 Nov12 tty6     00:00:00 /sbin/getty 38400 tty6
root       463     1  0 08:48 ?        00:00:00 /usr/sbin/sshd
inoue      465   463  0 08:49 ?        00:00:05 [sshd]
inoue      466   465  0 08:49 pts/0    00:00:00 -bash
root       570     1  0 09:12 ?        00:00:02 [rpciod]
root       571     1  0 09:12 ?        00:00:00 [lockd]
root       791     1  0 11:14 ?        00:00:00 /usr/sbin/inetd
root       800     1  0 11:14 ?        00:00:00 /usr/sbin/cron
root       815     1  0 11:15 ?        00:00:01 /usr/sbin/sshd
root      1193   466  0 15:20 pts/0    00:00:00 bash
root      1202  1193  0 15:20 pts/0    00:00:00 ps -ef
onlsbc1:/home/inoue/JavaRMI/getStart/examples/hello#

	CC/NET用の Debian GNU/Linux 3.0 上で SUN J2SDK 1.4.1 による JavaRMI の
	Hello World を正しく実行することはできなかった。


 (5). Blackdown Java のインストール

	Blackdown Java をインストールしてみる。
	以下のサイトから Java for Linux (Blackdown project) をダウンロードした。
	
	  http://www.mirror.ac.uk/sites/ftp.blackdown.org/java-linux/JDK-1.4.1/i386/01/

	SUN J2SDK 1.4.1 を無効にしておく。

onlsbc1:/usr# pwd
/usr
onlsbc1:/usr# ls -l
total 48
drwxr-xr-x    5 root     root         4096 Oct  8 09:05 X11R6
drwxr-xr-x    2 root     root        12288 Nov 13 11:13 bin
drwxr-xr-x    4 root     root         4096 Nov 13 11:09 include
drwxr-xr-x    2 root     root         4096 Nov 13 11:09 info
drwxr-xr-x    9 root     root         4096 Nov 13 14:28 j2sdk1.4.1_02
lrwxrwxrwx    1 root     root           13 Nov 13 14:29 java -> j2sdk1.4.1_02
drwxr-xr-x   23 root     root         4096 Nov 13 11:13 lib
drwxrwsr-x   11 root     staff        4096 Sep  1 10:08 local
drwxr-xr-x    2 root     root         4096 Nov 13 11:13 sbin
drwxr-xr-x   55 root     root         4096 Nov 13 11:09 share
drwxrwsr-x    2 root     src          4096 Nov  6 17:20 src
onlsbc1:/usr# mv j2sdk1.4.1_02 BAK-j2sdk1.4.1_02
onlsbc1:/usr# mv java BAK-java
onlsbc1:/usr# ls -l
total 48
drwxr-xr-x    9 root     root         4096 Nov 13 14:28 BAK-j2sdk1.4.1_02
lrwxrwxrwx    1 root     root           13 Nov 13 14:29 BAK-java -> j2sdk1.4.1_0
2
drwxr-xr-x    5 root     root         4096 Oct  8 09:05 X11R6
drwxr-xr-x    2 root     root        12288 Nov 13 11:13 bin
drwxr-xr-x    4 root     root         4096 Nov 13 11:09 include
drwxr-xr-x    2 root     root         4096 Nov 13 11:09 info
drwxr-xr-x   23 root     root         4096 Nov 13 11:13 lib
drwxrwsr-x   11 root     staff        4096 Sep  1 10:08 local
drwxr-xr-x    2 root     root         4096 Nov 13 11:13 sbin
drwxr-xr-x   55 root     root         4096 Nov 13 11:09 share
drwxrwsr-x    2 root     src          4096 Nov  6 17:20 src
onlsbc1:/usr#

	
[inoue@onlpara Blackdown]$ pwd
/home2/onlpara-wrk/inoue/Blackdown
[inoue@onlpara Blackdown]$ ls -l
合計 79664
-rw-r--r--    1 inoue    inoue        4360 11月 13 16:21 INSTALL-j2sdk.txt
-rw-r--r--    1 inoue    inoue       16955 11月 13 16:03 LICENSE-j2sdk.txt
-rw-r--r--    1 inoue    inoue        3492 11月 13 16:02 README.txt
-rw-r--r--    1 inoue    inoue    40636281 11月 13 16:07 j2sdk-1.4.1-01-linux-i5
86-gcc2.95.bin
-rw-r--r--    1 inoue    inoue    40813906 11月 13 16:25 j2sdk-1.4.1-01-linux-i5
86-gcc3.2.bin
[inoue@onlpara Blackdown]$ chmod +x j2sdk-1.4.1-01-linux-i586-gcc2.95.bin
[inoue@onlpara Blackdown]$ ls -l
合計 79664
-rw-r--r--    1 inoue    inoue        4360 11月 13 16:21 INSTALL-j2sdk.txt
-rw-r--r--    1 inoue    inoue       16955 11月 13 16:03 LICENSE-j2sdk.txt
-rw-r--r--    1 inoue    inoue        3492 11月 13 16:02 README.txt
-rwxr-xr-x    1 inoue    inoue    40636281 11月 13 16:07 j2sdk-1.4.1-01-linux-i5
86-gcc2.95.bin
-rw-r--r--    1 inoue    inoue    40813906 11月 13 16:25 j2sdk-1.4.1-01-linux-i5
86-gcc3.2.bin
[inoue@onlpara Blackdown]$

onlsbc1:/etc/apt# ls -l /mnt1/inoue/Blackdown/j2sdk-1.4.1-01-linux-i586-gcc2.95.
bin
-rwxr-xr-x    1 500      500      40636281 Nov 13 16:07 /mnt1/inoue/Blackdown/j2
sdk-1.4.1-01-linux-i586-gcc2.95.bin
onlsbc1:/etc/apt#

onlsbc1:/usr# pwd
/usr
onlsbc1:/usr# ls -l
total 48
drwxr-xr-x    9 root     root         4096 Nov 13 14:28 BAK-j2sdk1.4.1_02
lrwxrwxrwx    1 root     root           13 Nov 13 14:29 BAK-java -> j2sdk1.4.1_0
2
drwxr-xr-x    5 root     root         4096 Oct  8 09:05 X11R6
drwxr-xr-x    2 root     root        12288 Nov 13 11:13 bin
drwxr-xr-x    4 root     root         4096 Nov 13 11:09 include
drwxr-xr-x    2 root     root         4096 Nov 13 11:09 info
drwxr-xr-x   23 root     root         4096 Nov 13 11:13 lib
drwxrwsr-x   11 root     staff        4096 Sep  1 10:08 local
drwxr-xr-x    2 root     root         4096 Nov 13 11:13 sbin
drwxr-xr-x   55 root     root         4096 Nov 13 11:09 share
drwxrwsr-x    2 root     src          4096 Nov  6 17:20 src
onlsbc1:/usr#
onlsbc1:/usr# /mnt1/inoue/Blackdown/j2sdk-1.4.1-01-linux-i586-gcc2.95.bin
                 Sun Microsystems, Inc.
             Binary Code License Agreement

READ THE TERMS OF THIS AGREEMENT AND ANY PROVIDED
SUPPLEMENTAL LICENSE TERMS (COLLECTIVELY "AGREEMENT")
CAREFULLY BEFORE OPENING THE SOFTWARE MEDIA PACKAGE.  BY
OPENING THE SOFTWARE MEDIA PACKAGE, YOU AGREE TO THE TERMS
OF THIS AGREEMENT.  IF YOU ARE ACCESSING THE SOFTWARE
ELECTRONICALLY, INDICATE YOUR ACCEPTANCE OF THESE TERMS BY
SELECTING THE "ACCEPT" BUTTON AT THE END OF THIS
AGREEMENT.  IF YOU DO NOT AGREE TO ALL THESE TERMS,
PROMPTLY RETURN THE UNUSED SOFTWARE TO YOUR PLACE OF
PURCHASE FOR A REFUND OR, IF THE SOFTWARE IS ACCESSED
ELECTRONICALLY, SELECT THE "DECLINE" BUTTON AT THE END OF
THIS AGREEMENT.

1.  LICENSE TO USE.  Sun grants you a non-exclusive and
non-transferable license for the internal use only of the
accompanying software and documentation and any error
corrections provided by Sun (collectively "Software"), by
the number of users and the class of computer hardware for
which the corresponding fee has been paid.
		:
		:
Do you agree to the above license terms? [yes or no]
yes
Verifying archive integrity...OK
Uncompressing Blackdown Java 2 Standard Edition SDK v1.4.1-01 for Linux/i586....
.......................
		:
................................................................................
............
onlsbc1:/usr#
onlsbc1:/usr#
onlsbc1:/usr# ln -s j2sdk1.4.1 java
onlsbc1:/usr# ls -l
total 52
drwxr-xr-x    9 root     root         4096 Nov 13 14:28 BAK-j2sdk1.4.1_02
lrwxrwxrwx    1 root     root           13 Nov 13 14:29 BAK-java -> j2sdk1.4.1_0
2
drwxr-xr-x    5 root     root         4096 Oct  8 09:05 X11R6
drwxr-xr-x    2 root     root        12288 Nov 13 11:13 bin
drwxr-xr-x    4 root     root         4096 Nov 13 11:09 include
drwxr-xr-x    2 root     root         4096 Nov 13 11:09 info
drwxr-xr-x    8 inoue    inoue        4096 Feb 12  2003 j2sdk1.4.1
lrwxrwxrwx    1 root     root           10 Nov 14 09:22 java -> j2sdk1.4.1
drwxr-xr-x   23 root     root         4096 Nov 13 11:13 lib
drwxrwsr-x   11 root     staff        4096 Sep  1 10:08 local
drwxr-xr-x    2 root     root         4096 Nov 13 11:13 sbin
drwxr-xr-x   55 root     root         4096 Nov 13 11:09 share
drwxrwsr-x    2 root     src          4096 Nov  6 17:20 src
onlsbc1:/usr#
inoue@onlsbc1:~$ java -version
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.1-01)
Java HotSpot(TM) Client VM (build Blackdown-1.4.1-01, mixed mode)
inoue@onlsbc1:~$


 (6). BlackDown Java を使った JavaRMIの動作テスト

inoue@onlsbc1:~$ pwd
/home/inoue
inoue@onlsbc1:~$ export CLASSPATH=.:$HOME/public_html/myclasses:$HOME/JavaRMI/ge
tStart/examples/hello
inoue@onlsbc1:~$ printenv CLASSPATH
.:/home/inoue/public_html/myclasses:/home/inoue/JavaRMI/getStart/examples/hello
inoue@onlsbc1:~$

inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ pwd
/home/inoue/JavaRMI/getStart/examples/hello
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ ls -l
total 28
-rw-r--r--    1 inoue    inoue         175 Jun  5  1998 Hello.java
-rw-r--r--    1 inoue    inoue        1509 Nov 13 15:47 HelloApplet.java
-rw-r--r--    1 inoue    inoue         956 Jun  5  1998 HelloImpl.java
-rw-r--r--    1 inoue    inoue         245 Oct  1  1998 hello.html
-rw-r--r--    1 inoue    inoue          81 Nov 13 14:32 policy
-rw-r--r--    1 inoue    inoue         164 Nov 10 09:19 policy-bak
-rw-r--r--    1 inoue    inoue          81 Oct  1  1998 policy-org
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ javac -d $HOME/public_html/mycl
asses Hello.java HelloImpl.java HelloApplet.java
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ rmic -d $HOME/public_html/mycla
sses examples.hello.HelloImpl
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ ls -lR $HOME/public_html/myclas
ses
/home/inoue/public_html/myclasses:
total 4
drwxr-xr-x    3 inoue    inoue        4096 Nov  6 17:42 examples

/home/inoue/public_html/myclasses/examples:
total 4
drwxr-xr-x    2 inoue    inoue        4096 Nov 14 09:28 hello

/home/inoue/public_html/myclasses/examples/hello:
total 24
-rw-r--r--    1 inoue    inoue         224 Nov 14 09:27 Hello.class
-rw-r--r--    1 inoue    inoue        1283 Nov 14 09:27 HelloApplet.class
-rw-r--r--    1 inoue    inoue        1247 Nov 14 09:27 HelloImpl.class
-rw-r--r--    1 inoue    inoue        1448 Nov 14 09:28 HelloImpl_Skel.class
-rw-r--r--    1 inoue    inoue        2920 Nov 14 09:28 HelloImpl_Stub.class
-rw-r--r--    1 inoue    inoue          81 Nov 11 09:28 policy
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$
noue@onlsbc1:~/JavaRMI/getStart/examples/hello$ cp hello.html $HOME/public_html
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ ls -l $HOME/public_html/hello.h
tml
-rw-r--r--    1 inoue    inoue         245 Nov 14 09:28 /home/inoue/public_html/
hello.html
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$

onlsbc1:/home/inoue/JavaRMI/getStart/examples/hello# /usr/local/apache2/bin/apac
hectl start
onlsbc1:/home/inoue/JavaRMI/getStart/examples/hello# 

inoue@onlsbc1:~/JavaRMI/getStart$ pwd
/home/inoue/JavaRMI/getStart
inoue@onlsbc1:~/JavaRMI/getStart$ rmiregistry &
[1] 1791
inoue@onlsbc1:~/JavaRMI/getStart$ ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Nov12 ?        00:00:04 init [2]
root         2     1  0 Nov12 ?        00:00:00 [keventd]
root         3     0  0 Nov12 ?        00:00:00 [ksoftirqd_CPU0]
root         4     0  0 Nov12 ?        00:00:00 [kswapd]
root         5     0  0 Nov12 ?        00:00:00 [bdflush]
root         6     0  0 Nov12 ?        00:00:00 [kupdated]
root         7     1  0 Nov12 ?        00:00:00 [i2oevtd]
root         8     1  0 Nov12 ?        00:00:04 [kjournald]
root        47     1  0 Nov12 ?        00:00:00 [khubd]
daemon     108     1  0 Nov12 ?        00:00:00 [portmap]
root       163     1  0 Nov12 ?        00:00:00 /sbin/syslogd
root       166     1  0 Nov12 ?        00:00:00 /sbin/klogd
root       171     1  0 Nov12 ?        00:00:00 /sbin/rpc.statd
root       182     1  0 Nov12 ?        00:00:00 /usr/sbin/lpd
inoue      198     1  0 Nov12 tty1     00:00:00 -bash
root       199     1  0 Nov12 tty2     00:00:00 /sbin/getty 38400 tty2
root       200     1  0 Nov12 tty3     00:00:00 /sbin/getty 38400 tty3
root       201     1  0 Nov12 tty4     00:00:00 /sbin/getty 38400 tty4
root       202     1  0 Nov12 tty5     00:00:00 /sbin/getty 38400 tty5
root       203     1  0 Nov12 tty6     00:00:00 /sbin/getty 38400 tty6
root       570     1  0 Nov13 ?        00:00:03 [rpciod]
root       571     1  0 Nov13 ?        00:00:00 [lockd]
root       791     1  0 Nov13 ?        00:00:00 /usr/sbin/inetd
root       800     1  0 Nov13 ?        00:00:00 /usr/sbin/cron
root       815     1  0 Nov13 ?        00:00:02 /usr/sbin/sshd
root      1620   815  0 08:26 ?        00:00:00 /usr/sbin/sshd
inoue     1622  1620  0 08:26 ?        00:00:02 [sshd]
inoue     1623  1622  0 08:26 pts/0    00:00:00 -bash
root      1757     1  0 09:29 ?        00:00:00 /usr/local/apache2/bin/httpd -k
nobody    1758  1757  0 09:29 ?        00:00:00 [httpd]
nobody    1759  1757  0 09:29 ?        00:00:00 [httpd]
nobody    1760  1757  0 09:29 ?        00:00:00 [httpd]
nobody    1761  1757  0 09:29 ?        00:00:00 [httpd]
nobody    1762  1757  0 09:29 ?        00:00:00 [httpd]
inoue     1791  1623 73 09:33 pts/0    00:00:01 rmiregistry
inoue     1792  1791  0 09:33 pts/0    00:00:00 rmiregistry
inoue     1793  1792  0 09:33 pts/0    00:00:00 rmiregistry
inoue     1794  1792  0 09:33 pts/0    00:00:00 rmiregistry
inoue     1795  1792  0 09:33 pts/0    00:00:00 rmiregistry
inoue     1796  1792  0 09:33 pts/0    00:00:00 rmiregistry
inoue     1797  1792  0 09:33 pts/0    00:00:00 rmiregistry
inoue     1798  1792  0 09:33 pts/0    00:00:00 rmiregistry
inoue     1799  1792 11 09:33 pts/0    00:00:00 rmiregistry
inoue     1801  1792  0 09:33 pts/0    00:00:00 rmiregistry
inoue     1802  1792  1 09:33 pts/0    00:00:00 rmiregistry
inoue     1803  1623  0 09:33 pts/0    00:00:00 ps -ef
inoue@onlsbc1:~/JavaRMI/getStart$

inoue@onlsbc1:~/JavaRMI/getStart$ java -Djava.rmi.server.codebase=http://onlsbc1
.kek.jp/~inoue/myclasses/ -Djava.security.policy=$HOME/JavaRMI/getStart/examples
/hello/policy examples.hello.HelloImpl
HelloServer bound in registry

	Webブラウザ、IEで "http://onlsbc1.kek.jp/~inoue/hello.html" に
        アクセスすると、"Naming.lookup: Failed"と表示される。 症状は SUN の
	J2SDK を使った場合と同じ。

	Ctl-C で Hello サーバを止める。
inoue@onlsbc1:~/JavaRMI/getStart$ kill -KILL 1791
inoue@onlsbc1:~/JavaRMI/getStart$
[1]+  Killed                  rmiregistry
inoue@onlsbc1:~/JavaRMI/getStart$ 
inoue@onlsbc1:~/JavaRMI/getStart$ su
Password:
onlsbc1:/home/inoue/JavaRMI/getStart# /usr/local/apache2/bin/apachectl stop
onlsbc1:/home/inoue/JavaRMI/getStart# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Nov12 ?        00:00:04 init [2]
root         2     1  0 Nov12 ?        00:00:00 [keventd]
root         3     0  0 Nov12 ?        00:00:00 [ksoftirqd_CPU0]
root         4     0  0 Nov12 ?        00:00:00 [kswapd]
root         5     0  0 Nov12 ?        00:00:00 [bdflush]
root         6     0  0 Nov12 ?        00:00:00 [kupdated]
root         7     1  0 Nov12 ?        00:00:00 [i2oevtd]
root         8     1  0 Nov12 ?        00:00:04 [kjournald]
root        47     1  0 Nov12 ?        00:00:00 [khubd]
daemon     108     1  0 Nov12 ?        00:00:00 [portmap]
root       163     1  0 Nov12 ?        00:00:00 /sbin/syslogd
root       166     1  0 Nov12 ?        00:00:00 /sbin/klogd
root       171     1  0 Nov12 ?        00:00:00 /sbin/rpc.statd
root       182     1  0 Nov12 ?        00:00:00 /usr/sbin/lpd
inoue      198     1  0 Nov12 tty1     00:00:00 -bash
root       199     1  0 Nov12 tty2     00:00:00 /sbin/getty 38400 tty2
root       200     1  0 Nov12 tty3     00:00:00 /sbin/getty 38400 tty3
root       201     1  0 Nov12 tty4     00:00:00 /sbin/getty 38400 tty4
root       202     1  0 Nov12 tty5     00:00:00 /sbin/getty 38400 tty5
root       203     1  0 Nov12 tty6     00:00:00 /sbin/getty 38400 tty6
root       570     1  0 Nov13 ?        00:00:03 [rpciod]
root       571     1  0 Nov13 ?        00:00:00 [lockd]
root       791     1  0 Nov13 ?        00:00:00 /usr/sbin/inetd
root       800     1  0 Nov13 ?        00:00:00 /usr/sbin/cron
root       815     1  0 Nov13 ?        00:00:02 /usr/sbin/sshd
root      1620   815  0 08:26 ?        00:00:00 /usr/sbin/sshd
inoue     1622  1620  0 08:26 ?        00:00:02 [sshd]
inoue     1623  1622  0 08:26 pts/0    00:00:00 -bash
root      1862  1623  0 09:46 pts/0    00:00:00 bash
root      1867  1862  0 09:47 pts/0    00:00:00 ps -ef
onlsbc1:/home/inoue/JavaRMI/getStart#

	CC/NET用の Debian GNU/Linux 3.0 上で Blackdown J2SDK 1.4.1 による JavaRMI の
	Hello World を正しく実行することはできなかった。


 (7). BlackDown Java を Debianパッケージでインストールし直す

onlsbc1:/etc/apt# pwd
/etc/apt
onlsbc1:/etc/apt# vi sources.list
			:
# for j2sdk1.4
deb ftp://sunsite.auc.dk/pub/languages/java/java-linux/debian unstable main non-
free

sources.list: 28 lines, 1252 characters
onlsbc1:/etc/apt#

onlsbc1:/etc/apt# apt-get update
Hit http://security.debian.org stable/updates/main Packages
Hit http://security.debian.org stable/updates/main Release
Hit http://non-us.debian.org stable/non-US/main Packages
Hit http://non-us.debian.org stable/non-US/main Release
Hit http://non-us.debian.org stable/non-US/contrib Packages
Hit http://non-us.debian.org stable/non-US/contrib Release
Hit http://non-us.debian.org stable/non-US/non-free Packages
Hit http://non-us.debian.org stable/non-US/non-free Release
Hit http://non-us.debian.org testing/non-US/main Packages
Hit http://non-us.debian.org testing/non-US/main Release
Hit http://non-us.debian.org testing/non-US/contrib Packages
Hit http://non-us.debian.org testing/non-US/contrib Release
Hit http://security.debian.org stable/updates/contrib Packages
Hit http://security.debian.org stable/updates/contrib Release
Hit http://security.debian.org stable/updates/non-free Packages
Hit http://security.debian.org stable/updates/non-free Release
Hit http://non-us.debian.org testing/non-US/non-free Packages
Hit http://non-us.debian.org testing/non-US/non-free Release
Hit http://ftp.debian.or.jp testing/main Packages
Hit http://ftp.debian.or.jp testing/main Release
Hit http://ftp.debian.or.jp testing/contrib Packages
Hit http://ftp.debian.or.jp testing/contrib Release
Hit http://ftp.debian.or.jp testing/non-free Packages
Hit http://ftp.debian.or.jp testing/non-free Release
Hit http://ftp.jp.debian.org stable/main Packages
Hit http://ftp.jp.debian.org stable/main Release
Hit http://ftp.jp.debian.org stable/contrib Packages
Hit http://ftp.jp.debian.org stable/contrib Release
Hit http://ftp.jp.debian.org stable/non-free Packages
Hit http://ftp.jp.debian.org stable/non-free Release
Hit http://ftp.jp.debian.org stable-jp/main Packages
Hit http://ftp.jp.debian.org stable-jp/main Release
Hit http://ftp.jp.debian.org stable-jp/contrib Packages
Hit http://ftp.jp.debian.org stable-jp/contrib Release
Hit http://ftp.jp.debian.org stable-jp/non-free Packages
Hit http://ftp.jp.debian.org stable-jp/non-free Release
Hit http://ftp.jp.debian.org testing-jp/main Packages
Ign http://ftp.jp.debian.org testing-jp/main Release
Hit http://ftp.jp.debian.org testing-jp/contrib Packages
Ign http://ftp.jp.debian.org testing-jp/contrib Release
Hit http://ftp.jp.debian.org testing-jp/non-free Packages
Ign http://ftp.jp.debian.org testing-jp/non-free Release
Get:1 ftp://sunsite.auc.dk unstable/main Packages [381B]
Get:2 ftp://sunsite.auc.dk unstable/main Release
Ign ftp://sunsite.auc.dk unstable/main Release
Get:3 ftp://sunsite.auc.dk unstable/non-free Packages [2521B]
Get:4 ftp://sunsite.auc.dk unstable/non-free Release
Ign ftp://sunsite.auc.dk unstable/non-free Release
Fetched 2902B in 10s (272B/s)
Reading Package Lists... Done
Building Dependency Tree... Done
onlsbc1:/etc/apt#

	注.   フォントの設定もやる場合には、
		apt-get install j2sdk1.4 ttf-kochi-mincho ttf-kochi-gothic
	   と入力する。

onlsbc1:/etc/apt# apt-get install j2sdk1.4
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

Sorry, but the following packages have unmet dependencies:
  j2sdk1.4: Depends: j2re1.4 (= 1.4.0.99beta-1) but it is not going to be instal
led
E: Sorry, broken packages
onlsbc1:/etc/apt#

onlsbc1:/etc/apt# vi sources.list
			:
#deb http://www.mirror.ac.uk/sites/ftp.blackdown.org/java-linux/debian woody mai
n non-free
deb http://www.mirror.ac.uk/sites/ftp.blackdown.org/java-linux/debian woody main
 non-free

# for j2sdk1.4
#deb ftp://sunsite.auc.dk/pub/languages/java/java-linux/debian unstable main non
-free
sources.list: 29 lines, 1343 characters
onlsbc1:/etc/apt#

onlsbc1:/etc/apt# apt-get install j2sdk1.3
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  defoma dialog gsfonts gsfonts-x11 j2re1.3 j2se-common libc6 libfreetype6
  locales xfree86-common xlibs xutils
The following packages will be REMOVED:
  libdb1-compat
The following NEW packages will be installed:
  defoma dialog gsfonts gsfonts-x11 j2re1.3 j2sdk1.3 j2se-common libfreetype6
  locales xfree86-common xlibs xutils
The following held packages will be changed:
  libc6 locales
The following packages will be DOWNGRADED
  libc6
0 packages upgraded, 12 newly installed, 1 downgraded, 1 to remove and 0  not up
graded.
Need to get 27.1MB of archives. After unpacking 63.6MB will be used.
Do you want to continue? [Y/n] y
Get:1 http://security.debian.org stable/updates/main libc6 2.2.5-11.5 [3383kB]
Get:2 http://ftp.jp.debian.org stable/main dialog 0.9a-20020309a-1 [104kB]
Get:3 ftp://sunsite.auc.dk woody/main j2se-common 1.1 [6344B]
Get:4 ftp://sunsite.auc.dk woody/non-free j2re1.3 1.3.1.02b-2 [13.7MB]
Get:5 http://ftp.jp.debian.org stable/main defoma 0.11.0 [72.5kB]
Get:6 http://ftp.jp.debian.org stable/main gsfonts 6.0-2 [1738kB]
Get:7 http://security.debian.org stable/updates/main locales 2.2.5-11.5 [3392kB]
Get:8 http://ftp.jp.debian.org stable/main gsfonts-x11 0.16 [8738B]
Get:9 http://ftp.jp.debian.org stable/main libfreetype6 2.0.9-1 [209kB]
Get:10 http://security.debian.org stable/updates/main xfree86-common 4.1.0-16woo
dy1 [545kB]
Get:11 http://security.debian.org stable/updates/main xutils 4.1.0-16woody1 [602
kB]
Get:12 http://security.debian.org stable/updates/main xlibs 4.1.0-16woody1 [1224
kB]
Get:13 ftp://sunsite.auc.dk woody/non-free j2sdk1.3 1.3.1.02b-2 [2118kB]
Fetched 27.1MB in 1m34s (286kB/s)
Preconfiguring packages ...
dpkg: libdb1-compat: dependency problems, but removing anyway as you request:
 libc6 depends on libdb1-compat.
(Reading database ... 13343 files and directories currently installed.)
Removing libdb1-compat ...
Selecting previously deselected package libc6.
(Reading database ... 13337 files and directories currently installed.)
Preparing to replace libc6 2.3.2-9 (using .../libc6_2.2.5-11.5_i386.deb) ...
Unpacking replacement libc6 ...
Setting up libc6 (2.2.5-11.5) ...
Current default timezone: 'Asia/Tokyo'.
Local time is now:      Fri Nov 14 13:59:17 JST 2003.
Universal Time is now:  Fri Nov 14 04:59:17 UTC 2003.
Run 'tzconfig' if you wish to change it.

Selecting previously deselected package locales.
(Reading database ... 13321 files and directories currently installed.)
Unpacking locales (from .../locales_2.2.5-11.5_all.deb) ...
Selecting previously deselected package dialog.
Unpacking dialog (from .../dialog_0.9a-20020309a-1_i386.deb) ...
Selecting previously deselected package defoma.
Unpacking defoma (from .../archives/defoma_0.11.0_all.deb) ...
Selecting previously deselected package gsfonts.
Unpacking gsfonts (from .../archives/gsfonts_6.0-2_all.deb) ...
Selecting previously deselected package xfree86-common.
Unpacking xfree86-common (from .../xfree86-common_4.1.0-16woody1_all.deb) ...
Selecting previously deselected package xutils.
Unpacking xutils (from .../xutils_4.1.0-16woody1_i386.deb) ...
Selecting previously deselected package gsfonts-x11.
Unpacking gsfonts-x11 (from .../gsfonts-x11_0.16_all.deb) ...
Selecting previously deselected package j2se-common.
Unpacking j2se-common (from .../j2se-common_1.1_all.deb) ...
Selecting previously deselected package libfreetype6.
Unpacking libfreetype6 (from .../libfreetype6_2.0.9-1_i386.deb) ...
Selecting previously deselected package xlibs.
Unpacking xlibs (from .../xlibs_4.1.0-16woody1_i386.deb) ...
Selecting previously deselected package j2re1.3.
Unpacking j2re1.3 (from .../j2re1.3_1.3.1.02b-2_i386.deb) ...
Sun Microsystems, Inc.

Binary Code License Agreement


READ THE TERMS OF THIS AGREEMENT AND ANY PROVIDED
SUPPLEMENTAL LICENSE TERMS (COLLECTIVELY "AGREEMENT")
CAREFULLY BEFORE OPENING THE SOFTWARE MEDIA PACKAGE.  BY
OPENING THE SOFTWARE MEDIA PACKAGE, YOU AGREE TO THE TERMS
OF THIS AGREEMENT.  IF YOU ARE ACCESSING THE SOFTWARE
ELECTRONICALLY, INDICATE YOUR ACCEPTANCE OF THESE TERMS BY
SELECTING THE "ACCEPT" BUTTON AT THE END OF THIS AGREEMENT.
IF YOU DO NOT AGREE TO ALL OF THESE TERMS, PROMPTLY RETURN
THE UNUSED SOFTWARE TO YOUR PLACE OF PURCHASE FOR A REFUND
OR, IF THE SOFTWARE IS ACCESSED ELECTRONICALLY, SELECT THE
"DECLINE" BUTTON AT THE END OF THIS AGREEMENT AND THE
INSTALLATION PROCESS WILL NOT CONTINUE.


1.  License to Use.  Sun Microsystems, Inc.  ("Sun") grants
you a non-exclusive and non-transferable license for the
internal use only of the accompanying software,
documentation and any error corrections provided by Sun
(collectively "Software"), by the number of users and the
class of computer hardware for which the corresponding fee
has been paid.


2.  Restrictions.  Software is confidential and copyrighted.
Title to Software and all associated intellectual property
rights is retained by Sun and/or its licensors.  Except as
specifically authorized in any Supplemental License Terms,
you may not make copies of Software, other than a single
copy of Software for archival purposes.  Unless enforcement
is prohibited by applicable law, you may not modify,
decompile, or reverse engineer Software.  You acknowledge
that Software is not designed, licensed or intended for use
in the design, construction, operation or maintenance of any
nuclear facility.  Sun disclaims any express or implied
warranty of fitness for such uses.  No right, title or
interest in or to any trademark, service mark, logo or trade
name of Sun or its licensors is granted under this
Agreement.


3.  Limited Warranty.  Sun warrants to you that for a period
of ninety (90) days from the date of purchase, as evidenced
by a copy of the receipt, the media on which Software is
furnished (if any) will be free of defects in materials and
workmanship under normal use.  Except for the foregoing,
Software is provided "AS IS".  Your exclusive remedy and
Sun's entire liability under this limited warranty will be
at Sun's option to replace Software media or refund the fee
paid for Software.


4.  DISCLAIMER OF WARRANTY.  UNLESS SPECIFIED IN THIS
AGREEMENT, ALL EXPRESS OR IMPLIED CONDITIONS,
REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED
WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE OR NON-INFRINGEMENT ARE DISCLAIMED, EXCEPT TO THE
EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY
INVALID.


5.  LIMITATION OF LIABILITY.  TO THE EXTENT NOT PROHIBITED
BY LAW, IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR
ANY LOST REVENUE, PROFIT OR DATA, OR FOR SPECIAL, INDIRECT,
CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
CAUSED REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF
OR RELATED TO THE USE OF OR INABILITY TO USE SOFTWARE, EVEN
IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
In no event will Sun's liability to you, whether in
contract, tort (including negligence), or otherwise, exceed
the amount paid by you for Software under this Agreement.
The foregoing limitations will apply even if the above
stated warranty fails of its essential purpose.


6.  Termination.  This Agreement is effective until
terminated.  You may terminate this Agreement at any time by
destroying all copies of Software.  This Agreement will
terminate immediately without notice from Sun if you fail to
comply with any provision of this Agreement.  Upon
Termination, you must destroy all copies of Software.


7.  Export Regulations.  All Software and any technical data
delivered under this Agreement are subject to US export
control laws and may be subject to export or import
regulations in other countries.  You agree to comply
strictly with all such laws and regulations and acknowledge
that you have the responsibility to obtain such licenses to
export, re-export, or import as may be required after
delivery to you.


8.  U.S.  Government Restricted Rights.  If Software is
being acquired by or on behalf of the U.S.  Government or by
a U.S.  Government prime contractor or subcontractor (at any
tier), then the Government's rights in Software and
accompanying documentation will be only as set forth in this
Agreement; this is in accordance with 48 C.F.R.  227.7202-4
(for Department of Defense (DOD) acquisitions) and with 48
C.F.R.  2.101 and 12.212 (for non-DOD acquisitions).


9.  Governing Law.  Any action related to this Agreement
will be governed by California law and controlling U.S.
federal law.  No choice of law rules of any jurisdiction
will apply.


10.  Severability.  If any provision of this Agreement is
held to be unenforceable, this Agreement will remain in
effect with the provision omitted, unless omission would
frustrate the intent of the parties, in which case this
Agreement will immediately terminate.


11.  Integration.  This Agreement is the entire agreement
between you and Sun relating to its subject matter.  It
supersedes all prior or contemporaneous oral or written
communications, proposals, representations and warranties
and prevails over any conflicting or additional terms of any
quote, order, acknowledgment, or other communication between
the parties relating to its subject matter during the term
of this Agreement.  No modification of this Agreement will
be binding, unless in writing and signed by an authorized
representative of each party.


For inquiries please contact:  Sun Microsystems, Inc.  901
San Antonio Road, Palo Alto, California 94303


JAVA 2 RUNTIME ENVIRONMENT (J2RE), VERSION 1.3.x

SUPPLEMENTAL LICENSE TERMS


These supplemental license terms ("Supplemental Terms") add
to or modify the terms of the Binary Code License Agreement
(collectively, the "Agreement").  Capitalized terms not
defined in these Supplemental Terms shall have the same
meanings ascribed to them in the Agreement.  These
Supplemental Terms shall supersede any inconsistent or
conflicting terms in the Agreement, or in any license
contained within the Software.

1.  Software Internal Use and Development License Grant.
Subject to the terms and conditions of this Agreement,
including, but not limited to Section 4 (Java(TM) Technology
Restrictions) of these Supplemental Terms, Sun grants you a
non-exclusive, non-transferable, limited license to
reproduce internally and use internally the binary form of
the Software complete and unmodified for the sole purpose of
designing, developing and testing your Java applets and
applications intended to run on the Java platform
("Programs").

2.  License to Distribute Software.  Subject to the terms
and conditions of this Agreement, including, but not limited
to Section 4 (Java (TM) Technology Restrictions) of these
Supplemental Terms, Sun grants you a non-exclusive,
non-transferable, limited license to reproduce and
distribute the Software in binary code form only, provided
that (i) you distribute the Software complete and unmodified
and only bundled as part of, and for the sole purpose of
running, your Programs, (ii) the Programs add significant
and primary functionality to the Software, (iii) you do not
distribute additional software intended to replace any
component(s) of the Software, (iv) you do not remove or
alter any proprietary legends or notices contained in the
Software, (v) you only distribute the Software subject to a
license agreement that protects Sun's interests consistent
with the terms contained in this Agreement, and (vi) you
agree to defend and indemnify Sun and its licensors from and
against any damages, costs, liabilities, settlement amounts
and/or expenses (including attorneys' fees) incurred in
connection with any claim, lawsuit or action by any third
party that arises or results from the use or distribution of
any and all Programs and/or Software.

3.  License to Distribute Redistributables.  Subject to the
terms and conditions of this Agreement, including but not
limited to Section 4 (Java Technology Restrictions) of these
Supplemental Terms, Sun grants you a non-exclusive,
non-transferable, limited license to reproduce and
distribute the binary form of those files specifically
identified as redistributable in the Software "README" file
("Redistributables") provided that:  (i) you distribute the
Redistributables complete and unmodified (unless otherwise
specified in the applicable README file), and only bundled
as part of Programs, (ii) you do not distribute additional
software intended to supersede any component(s) of the
Redistributables, (iii) you do not remove or alter any
proprietary legends or notices contained in or on the
Redistributables, (iv) you only distribute the
Redistributables pursuant to a license agreement that
protects Sun's interests consistent with the terms contained
in the Agreement, and (v) you agree to defend and indemnify
Sun and its licensors from and against any damages, costs,
liabilities, settlement amounts and/or expenses (including
attorneys' fees) incurred in connection with any claim,
lawsuit or action by any third party that arises or results
from the use or distribution of any and all Programs and/or
Software.

4.  Java Technology Restrictions.  You may not modify the
Java Platform Interface ("JPI", identified as classes
contained within the "java" package or any subpackages of
the "java" package), by creating additional classes within
the JPI or otherwise causing the addition to or modification
of the classes in the JPI.  In the event that you create an
additional class and associated API(s) which (i) extends the
functionality of the Java platform, and (ii) is exposed to
third party software developers for the purpose of
developing additional software which invokes such additional
API, you must promptly publish broadly an accurate
specification for such API for free use by all developers.
You may not create, or authorize your licensees to create,
additional classes, interfaces, or subpackages that are in
any way identified as "java", "javax", "sun" or similar
convention as specified by Sun in any naming convention
designation.

5.  Trademarks and Logos.  You acknowledge and agree as
between you and Sun that Sun owns the SUN, SOLARIS, JAVA,
JINI, FORTE, and iPLANET trademarks and all SUN, SOLARIS,
JAVA, JINI, FORTE, and iPLANET-related trademarks, service
marks, logos and other brand designations ("Sun Marks"), and
you agree to comply with the Sun Trademark and Logo Usage
Requirements currently located at
http://www.sun.com/policies/trademarks.  Any use you make of
the Sun Marks inures to Sun's benefit.

6.  Source Code.  Software may contain source code that is
provided solely for reference purposes pursuant to the terms
of this Agreement.  Source code may not be redistributed
unless expressly provided for in this Agreement.

7.  Termination for Infringement.  Either party may
terminate this Agreement immediately should any Software
become, or in either party's opinion be likely to become,
the subject of a claim of infringement of any intellectual
property right.

For inquiries please contact:  Sun Microsystems, Inc.  901
San Antonio Road, Palo Alto, California 94303
(LFI#99458/Form ID#011801)
Do you agree to the above license terms? [yes or no] yes
Selecting previously deselected package j2sdk1.3.
Unpacking j2sdk1.3 (from .../j2sdk1.3_1.3.1.02b-2_i386.deb) ...
Sun Microsystems, Inc.  Binary Code License Agreement

READ THE TERMS OF THIS AGREEMENT AND ANY PROVIDED
SUPPLEMENTAL LICENSE TERMS (COLLECTIVELY "AGREEMENT")
CAREFULLY BEFORE OPENING THE SOFTWARE MEDIA PACKAGE.  BY
OPENING THE SOFTWARE MEDIA PACKAGE, YOU AGREE TO THE TERMS
OF THIS AGREEMENT.  IF YOU ARE ACCESSING THE SOFTWARE
ELECTRONICALLY, INDICATE YOUR ACCEPTANCE OF THESE TERMS BY
SELECTING THE "ACCEPT" BUTTON AT THE END OF THIS AGREEMENT.
IF YOU DO NOT AGREE TO ALL THESE TERMS, PROMPTLY RETURN THE
UNUSED SOFTWARE TO YOUR PLACE OF PURCHASE FOR A REFUND OR,
IF THE SOFTWARE IS ACCESSED ELECTRONICALLY, SELECT THE
"DECLINE" BUTTON AT THE END OF THIS AGREEMENT.

1.  LICENSE TO USE.  Sun grants you a non-exclusive and
non-transferable license for the internal use only of the
accompanying software and documentation and any error
corrections provided by Sun (collectively "Software"), by
the number of users and the class of computer hardware for
which the corresponding fee has been paid.

2.  RESTRICTIONS.  Software is confidential and copyrighted.
Title to Software and all associated intellectual property
rights is retained by Sun and/or its licensors.  Except as
specifically authorized in any Supplemental License Terms,
you may not make copies of Software, other than a single
copy of Software for archival purposes.  Unless enforcement
is prohibited by applicable law, you may not modify,
decompile, or reverse engineer Software.  You acknowledge
that Software is not designed, licensed or intended for use
in the design, construction, operation or maintenance of any
nuclear facility.  Sun disclaims any express or implied
warranty of fitness for such uses.  No right, title or
interest in or to any trademark, service mark, logo or trade
name of Sun or its licensors is granted under this
Agreement.

3.  LIMITED WARRANTY.  Sun warrants to you that for a period
of ninety (90) days from the date of purchase, as evidenced
by a copy of the receipt, the media on which Software is
furnished (if any) will be free of defects in materials and
workmanship under normal use.  Except for the foregoing,
Software is provided "AS IS".  Your exclusive remedy and
Sun's entire liability under this limited warranty will be
at Sun's option to replace Software media or refund the fee
paid for Software.

4.  DISCLAIMER OF WARRANTY.  UNLESS SPECIFIED IN THIS
AGREEMENT, ALL EXPRESS OR IMPLIED CONDITIONS,
REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED
WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE OR NON-INFRINGEMENT ARE DISCLAIMED, EXCEPT TO THE
EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY
INVALID.

5.  LIMITATION OF LIABILITY.  TO THE EXTENT NOT PROHIBITED
BY LAW, IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR
ANY LOST REVENUE, PROFIT OR DATA, OR FOR SPECIAL, INDIRECT,
CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
CAUSED REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF
OR RELATED TO THE USE OF OR INABILITY TO USE SOFTWARE, EVEN
IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
In no event will Sun's liability to you, whether in
contract, tort (including negligence), or otherwise, exceed
the amount paid by you for Software under this Agreement.
The foregoing limitations will apply even if the above
stated warranty fails of its essential purpose.

6.  Termination.  This Agreement is effective until
terminated.  You may terminate this Agreement at any time by
destroying all copies of Software.  This Agreement will
terminate immediately without notice from Sun if you fail to
comply with any provision of this Agreement.  Upon
Termination, you must destroy all copies of Software.

7.  Export Regulations.  All Software and technical data
delivered under this Agreement are subject to US export
control laws and may be subject to export or import
regulations in other countries.  You agree to comply
strictly with all such laws and regulations and acknowledge
that you have the responsibility to obtain such licenses to
export, re-export, or import as may be required after
delivery to you.

8.  U.S.  Government Restricted Rights.  If Software is
being acquired by or on behalf of the U.S.  Government or by
a U.S.  Government prime contractor or subcontractor (at any
tier), then the Government's rights in Software and
accompanying documentation will be only as set forth in this
Agreement; this is in accordance with 48 CFR 227.7201
through 227.7202-4 (for Department of Defense (DOD)
acquisitions) and with 48 CFR 2.101 and 12.212 (for non-DOD
acquisitions).

9.  Governing Law.  Any action related to this Agreement
will be governed by California law and controlling U.S.
federal law.  No choice of law rules of any jurisdiction
will apply.

10.  Severability.  If any provision of this Agreement is
held to be unenforceable, this Agreement will remain in
effect with the provision omitted, unless omission would
frustrate the intent of the parties, in which case this
Agreement will immediately terminate.

11.  Integration.  This Agreement is the entire agreement
between you and Sun relating to its subject matter.  It
supersedes all prior or contemporaneous oral or written
communications, proposals, representations and warranties
and prevails over any conflicting or additional terms of any
quote, order, acknowledgment, or other communication between
the parties relating to its subject matter during the term
of this Agreement.  No modification of this Agreement will
be binding, unless in writing and signed by an authorized
representative of each party.

Java(TM) 2 Software Development Kit (J2SDK), Standard
Edition, Version 1.3.x SUPPLEMENTAL LICENSE TERMS

These supplemental license terms ("Supplemental Terms") add
to or modify the terms of the Binary Code License Agreement
(collectively, the "Agreement").  Capitalized terms not
defined in these Supplemental Terms shall have the same
meanings ascribed to them in the Agreement.  These
Supplemental Terms shall supersede any inconsistent or
conflicting terms in the Agreement, or in any license
contained within the Software.

1.  Software Internal Use and Development License Grant.
Subject to the terms and conditions of this Agreement,
including, but not limited to Section 4 (Java(TM) Technology
Restrictions) of these Supplemental Terms, Sun grants you a
non-exclusive, non-transferable, limited license to
reproduce internally and use internally the binary form of
the Software complete and unmodified for the sole purpose of
designing, developing and testing your Java applets and
applications intended to run on the Java platform
("Programs").

2.  License to Distribute Software.  Subject to the terms
and conditions of this Agreement, including, but not limited
to Section 4 (Java (TM) Technology Restrictions) of these
Supplemental Terms, Sun grants you a non-exclusive,
non-transferable, limited license to reproduce and
distribute the Software in binary code form only, provided
that (i) you distribute the Software complete and unmodified
and only bundled as part of, and for the sole purpose of
running, your Programs, (ii) the Programs add significant
and primary functionality to the Software, (iii) you do not
distribute additional software intended to replace any
component(s) of the Software, (iv) you do not remove or
alter any proprietary legends or notices contained in the
Software, (v) you only distribute the Software subject to a
license agreement that protects Sun's interests consistent
with the terms contained in this Agreement, and (vi) you
agree to defend and indemnify Sun and its licensors from and
against any damages, costs, liabilities, settlement amounts
and/or expenses (including attorneys' fees) incurred in
connection with any claim, lawsuit or action by any third
party that arises or results from the use or distribution of
any and all Programs and/or Software.

3.  License to Distribute Redistributables.  Subject to the
terms and conditions of this Agreement, including but not
limited to Section 4 (Java Technology Restrictions) of these
Supplemental Terms, Sun grants you a non-exclusive,
non-transferable, limited license to reproduce and
distribute the binary form of those files specifically
identified as redistributable in the Software "README" file
("Redistributables") provided that:  (i) you distribute the
Redistributables complete and unmodified (unless otherwise
specified in the applicable README file), and only bundled
as part of Programs, (ii) you do not distribute additional
software intended to supersede any component(s) of the
Redistributables, (iii) you do not remove or alter any
proprietary legends or notices contained in or on the
Redistributables, (iv) you only distribute the
Redistributables pursuant to a license agreement that
protects Sun's interests consistent with the terms contained
in the Agreement, and (v) you agree to defend and indemnify
Sun and its licensors from and against any damages, costs,
liabilities, settlement amounts and/or expenses (including
attorneys' fees) incurred in connection with any claim,
lawsuit or action by any third party that arises or results
from the use or distribution of any and all Programs and/or
Software.

4.  Java Technology Restrictions.  You may not modify the
Java Platform Interface ("JPI", identified as classes
contained within the "java" package or any subpackages of
the "java" package), by creating additional classes within
the JPI or otherwise causing the addition to or modification
of the classes in the JPI.  In the event that you create an
additional class and associated API(s) which (i) extends the
functionality of the Java platform, and (ii) is exposed to
third party software developers for the purpose of
developing additional software which invokes such additional
API, you must promptly publish broadly an accurate
specification for such API for free use by all developers.
You may not create, or authorize your licensees to create,
additional classes, interfaces, or subpackages that are in
any way identified as "java", "javax", "sun" or similar
convention as specified by Sun in any naming convention
designation.

5.  Trademarks and Logos.  You acknowledge and agree as
between you and Sun that Sun owns the SUN, SOLARIS, JAVA,
JINI, FORTE, and iPLANET trademarks and all SUN, SOLARIS,
JAVA, JINI, FORTE, and iPLANET-related trademarks, service
marks, logos and other brand designations ("Sun Marks"), and
you agree to comply with the Sun Trademark and Logo Usage
Requirements currently located at
http://www.sun.com/policies/trademarks.  Any use you make of
the Sun Marks inures to Sun's benefit.

6.  Source Code.  Software may contain source code that is
provided solely for reference purposes pursuant to the terms
of this Agreement.  Source code may not be redistributed
unless expressly provided for in this Agreement.

7.  Termination for Infringement.  Either party may
terminate this Agreement immediately should any Software
become, or in either party's opinion be likely to become,
the subject of a claim of infringement of any intellectual
property right.

For inquiries please contact:  Sun Microsystems, Inc.  901
San Antonio Road, Palo Alto, California 94303
(LFI#99457/Form ID#011801)
Do you agree to the above license terms? [yes or no] yes
Setting up locales (2.2.5-11.5) ...
Generating locales...
Generation complete.

Setting up dialog (0.9a-20020309a-1) ...

Setting up defoma (0.11.0) ...

Setting up gsfonts (6.0-2) ...
(Re-)registering Postscript fonts...done

Setting up xfree86-common (4.1.0-16woody1) ...

Setting up xutils (4.1.0-16woody1) ...

Setting up gsfonts-x11 (0.16) ...
/usr/sbin/update-fonts-scale: warning: absolute path /usr/lib/X11/fonts/Type1 wa
s provided.
/usr/sbin/update-fonts-alias: warning: absolute path /usr/lib/X11/fonts/Type1 wa
s provided.

Setting up j2se-common (1.1) ...

Setting up libfreetype6 (2.0.9-1) ...

Setting up xlibs (4.1.0-16woody1) ...

Setting up j2re1.3 (1.3.1.02b-2) ...

Setting up j2sdk1.3 (1.3.1.02b-2) ...

onlsbc1:/etc/apt#

inoue@onlsbc1:/usr$ vi ~/.bashrc
			:
#export PATH=$PATH:/usr/java/bin
export PATH=$PATH:/usr/lib/j2se/1.3/bin
/home/inoue/.bashrc: 42 lines, 1167 characters
inoue@onlsbc1:/usr$

inoue@onlsbc1:/usr$ which java
/usr/bin/java
inoue@onlsbc1:/usr$ java -version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.3.1-02b-FCS)
Java HotSpot(TM) Client VM (build Blackdown-1.3.1_02b-FCS, mixed mode)
inoue@onlsbc1:/usr$

inoue@onlsbc1:~$ export CLASSPATH=.:$HOME/public_html/myclasses:$HOME/JavaRMI/ge
tStart/examples/hello
inoue@onlsbc1:~$ printenv CLASSPATH
.:/home/inoue/public_html/myclasses:/home/inoue/JavaRMI/getStart/examples/hello
inoue@onlsbc1:~$

inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ pwd
/home/inoue/JavaRMI/getStart/examples/hello
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$

inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ ls -l
total 28
-rw-r--r--    1 inoue    inoue         175 Jun  5  1998 Hello.java
-rw-r--r--    1 inoue    inoue        1509 Nov 13 15:47 HelloApplet.java
-rw-r--r--    1 inoue    inoue         956 Jun  5  1998 HelloImpl.java
-rw-r--r--    1 inoue    inoue         245 Oct  1  1998 hello.html
-rw-r--r--    1 inoue    inoue          81 Nov 13 14:32 policy
-rw-r--r--    1 inoue    inoue         164 Nov 10 09:19 policy-bak
-rw-r--r--    1 inoue    inoue          81 Oct  1  1998 policy-org
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$

inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ javac -d $HOME/public_html/mycl
asses Hello.java HelloImpl.java HelloApplet.java
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ rmic -d $HOME/public_html/mycla
sses examples.hello.HelloImpl
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ ls -lR $HOME/public_html/myclas
ses
/home/inoue/public_html/myclasses:
total 4
drwxr-xr-x    3 inoue    inoue        4096 Nov  6 17:42 examples

/home/inoue/public_html/myclasses/examples:
total 4
drwxr-xr-x    2 inoue    inoue        4096 Nov 14 14:21 hello

/home/inoue/public_html/myclasses/examples/hello:
total 24
-rw-r--r--    1 inoue    inoue         224 Nov 14 14:21 Hello.class
-rw-r--r--    1 inoue    inoue        1301 Nov 14 14:21 HelloApplet.class
-rw-r--r--    1 inoue    inoue        1261 Nov 14 14:21 HelloImpl.class
-rw-r--r--    1 inoue    inoue        1448 Nov 14 14:21 HelloImpl_Skel.class
-rw-r--r--    1 inoue    inoue        2920 Nov 14 14:21 HelloImpl_Stub.class
-rw-r--r--    1 inoue    inoue          81 Nov 11 09:28 policy
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$

inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ cp hello.html $HOME/public_html
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ ls -l $HOME/public_html/hello.h
tml
-rw-r--r--    1 inoue    inoue         245 Nov 14 14:22 /home/inoue/public_html/
hello.html
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$

inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ su
Password:
onlsbc1:/home/inoue/JavaRMI/getStart/examples/hello# /usr/local/apache2/bin/apac
hectl start
onlsbc1:/home/inoue/JavaRMI/getStart/examples/hello#

inoue@onlsbc1:~/JavaRMI/getStart$ pwd
/home/inoue/JavaRMI/getStart
inoue@onlsbc1:~/JavaRMI/getStart$ rmiregistry &
[1] 2719
inoue@onlsbc1:~/JavaRMI/getStart$ ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Nov12 ?        00:00:04 init [2]
root         2     1  0 Nov12 ?        00:00:00 [keventd]
root         3     0  0 Nov12 ?        00:00:00 [ksoftirqd_CPU0]
root         4     0  0 Nov12 ?        00:00:00 [kswapd]
root         5     0  0 Nov12 ?        00:00:00 [bdflush]
root         6     0  0 Nov12 ?        00:00:00 [kupdated]
root         7     1  0 Nov12 ?        00:00:00 [i2oevtd]
root         8     1  0 Nov12 ?        00:00:07 [kjournald]
root        47     1  0 Nov12 ?        00:00:00 [khubd]
daemon     108     1  0 Nov12 ?        00:00:00 [portmap]
root       163     1  0 Nov12 ?        00:00:00 /sbin/syslogd
root       166     1  0 Nov12 ?        00:00:00 /sbin/klogd
root       171     1  0 Nov12 ?        00:00:00 /sbin/rpc.statd
root       182     1  0 Nov12 ?        00:00:00 /usr/sbin/lpd
inoue      198     1  0 Nov12 tty1     00:00:00 -bash
root       199     1  0 Nov12 tty2     00:00:00 /sbin/getty 38400 tty2
root       200     1  0 Nov12 tty3     00:00:00 /sbin/getty 38400 tty3
root       201     1  0 Nov12 tty4     00:00:00 /sbin/getty 38400 tty4
root       202     1  0 Nov12 tty5     00:00:00 /sbin/getty 38400 tty5
root       203     1  0 Nov12 tty6     00:00:00 /sbin/getty 38400 tty6
root       570     1  0 Nov13 ?        00:00:03 [rpciod]
root       571     1  0 Nov13 ?        00:00:00 [lockd]
root       791     1  0 Nov13 ?        00:00:00 /usr/sbin/inetd
root       800     1  0 Nov13 ?        00:00:00 /usr/sbin/cron
root       815     1  0 Nov13 ?        00:00:03 /usr/sbin/sshd
root      1620   815  0 08:26 ?        00:00:00 /usr/sbin/sshd
inoue     1622  1620  0 08:26 ?        00:00:04 [sshd]
inoue     1623  1622  0 08:26 pts/0    00:00:00 -bash
root      2712     1  0 14:24 ?        00:00:00 /usr/local/apache2/bin/httpd -k
nobody    2713  2712  0 14:24 ?        00:00:00 [httpd]
nobody    2714  2712  0 14:24 ?        00:00:00 [httpd]
nobody    2715  2712  0 14:24 ?        00:00:00 [httpd]
nobody    2716  2712  0 14:24 ?        00:00:00 [httpd]
nobody    2717  2712  0 14:24 ?        00:00:00 [httpd]
inoue     2719  1623 14 14:25 pts/0    00:00:01 /usr/lib/j2se/1.3/bin/i386/nativ
inoue     2756  2719  0 14:25 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
inoue     2757  2756  0 14:25 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
inoue     2758  2756  0 14:25 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
inoue     2759  2756  0 14:25 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
inoue     2760  2756  0 14:25 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
inoue     2761  2756  0 14:25 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
inoue     2762  2756  0 14:25 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
inoue     2763  2756  1 14:25 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
inoue     2764  2756  0 14:25 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
inoue     2765  1623  0 14:25 pts/0    00:00:00 ps -ef
inoue@onlsbc1:~/JavaRMI/getStart$

inoue@onlsbc1:~/JavaRMI/getStart$ java -Djava.rmi.server.codebase=http://onlsbc1
.kek.jp/~inoue/myclasses/ -Djava.security.policy=$HOME/JavaRMI/getStart/examples
/hello/policy examples.hello.HelloImpl
HelloServer bound in registry

	Webブラウザ、IEで "http://onlsbc1.kek.jp/~inoue/hello.html" に
        アクセスすると、"Naming.lookup: Failed"と表示される。 症状は J2SDK 
	バージョン1.4を使った場合と同じ。

	Ctl-C で Hello サーバを止める。
inoue@onlsbc1:~/JavaRMI/getStart$ kill -KILL 2827
inoue@onlsbc1:~/JavaRMI/getStart$
[1]+  Killed                  rmiregistry
inoue@onlsbc1:~/JavaRMI/getStart$

onlsbc1:/home/inoue/JavaRMI/getStart# rmiregistry &
[1] 2877
onlsbc1:/home/inoue/JavaRMI/getStart# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Nov12 ?        00:00:04 init [2]
root         2     1  0 Nov12 ?        00:00:00 [keventd]
root         3     0  0 Nov12 ?        00:00:00 [ksoftirqd_CPU0]
root         4     0  0 Nov12 ?        00:00:00 [kswapd]
root         5     0  0 Nov12 ?        00:00:00 [bdflush]
root         6     0  0 Nov12 ?        00:00:00 [kupdated]
root         7     1  0 Nov12 ?        00:00:00 [i2oevtd]
root         8     1  0 Nov12 ?        00:00:07 [kjournald]
root        47     1  0 Nov12 ?        00:00:00 [khubd]
daemon     108     1  0 Nov12 ?        00:00:00 [portmap]
root       163     1  0 Nov12 ?        00:00:00 /sbin/syslogd
root       166     1  0 Nov12 ?        00:00:00 /sbin/klogd
root       171     1  0 Nov12 ?        00:00:00 /sbin/rpc.statd
root       182     1  0 Nov12 ?        00:00:00 /usr/sbin/lpd
inoue      198     1  0 Nov12 tty1     00:00:00 -bash
root       199     1  0 Nov12 tty2     00:00:00 /sbin/getty 38400 tty2
root       200     1  0 Nov12 tty3     00:00:00 /sbin/getty 38400 tty3
root       201     1  0 Nov12 tty4     00:00:00 /sbin/getty 38400 tty4
root       202     1  0 Nov12 tty5     00:00:00 /sbin/getty 38400 tty5
root       203     1  0 Nov12 tty6     00:00:00 /sbin/getty 38400 tty6
root       570     1  0 Nov13 ?        00:00:03 [rpciod]
root       571     1  0 Nov13 ?        00:00:00 [lockd]
root       791     1  0 Nov13 ?        00:00:00 /usr/sbin/inetd
root       800     1  0 Nov13 ?        00:00:00 /usr/sbin/cron
root       815     1  0 Nov13 ?        00:00:03 /usr/sbin/sshd
root      1620   815  0 08:26 ?        00:00:00 /usr/sbin/sshd
inoue     1622  1620  0 08:26 ?        00:00:04 [sshd]
inoue     1623  1622  0 08:26 pts/0    00:00:00 -bash
root      2712     1  0 14:24 ?        00:00:00 /usr/local/apache2/bin/httpd -k
nobody    2713  2712  0 14:24 ?        00:00:00 [httpd]
nobody    2714  2712  0 14:24 ?        00:00:00 [httpd]
nobody    2715  2712  0 14:24 ?        00:00:00 [httpd]
nobody    2716  2712  0 14:24 ?        00:00:00 [httpd]
nobody    2717  2712  0 14:24 ?        00:00:00 [httpd]
nobody    2821  2712  0 14:27 ?        00:00:00 [httpd]
nobody    2822  2712  0 14:27 ?        00:00:00 [httpd]
root      2875  1623  1 14:35 pts/0    00:00:00 bash
root      2877  2875 56 14:35 pts/0    00:00:01 /usr/lib/j2se/1.3/bin/i386/nativ
root      2914  2877  0 14:35 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
root      2915  2914  0 14:35 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
root      2916  2914  0 14:35 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
root      2917  2914  0 14:35 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
root      2918  2914  0 14:35 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
root      2919  2914  0 14:35 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
root      2920  2914  0 14:35 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
root      2921  2914  6 14:35 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
root      2922  2914  0 14:35 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
root      2923  2875  0 14:35 pts/0    00:00:00 ps -ef
onlsbc1:/home/inoue/JavaRMI/getStart# java -Djava.rmi.server.codebase=http://onl
sbc1.kek.jp/~inoue/myclasses/ -Djava.security.policy=$HOME/JavaRMI/getStart/exam
ples/hello/policy examples.hello.HelloImpl
HelloImpl err: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,r
esolve)
java.security.AccessControlException: access denied (java.net.SocketPermission 1
27.0.0.1:1099 connect,resolve)
        at java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:272)
        at java.security.AccessController.checkPermission(AccessController.java:
399)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
        at java.lang.SecurityManager.checkConnect(SecurityManager.java:1044)
        at java.net.Socket.(Socket.java:262)
        at java.net.Socket.(Socket.java:100)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect
SocketFactory.java:25)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster
SocketFactory.java:120)
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499)
        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190
)
        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)
        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318)
        at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
        at java.rmi.Naming.rebind(Naming.java:160)
        at examples.hello.HelloImpl.main(HelloImpl.java:28)
onlsbc1:/home/inoue/JavaRMI/getStart#

	Hello World のソースファイルを見直す。

inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ vi HelloImpl.java
							:
            HelloImpl obj = new HelloImpl();
            // Bind this object instance to the name "HelloServer"
//          Naming.rebind("HelloServer", obj);
            Naming.rebind("//onlsbc1.kek.jp/HelloServer", obj);
							:
HelloImpl.java: 36 lines, 1016 characters
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$

inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ vi HelloApplet.java
							:
//            obj = (Hello)Naming.lookup("//" +
//                         getCodeBase().getHost() + "/HelloServer");
            obj = (Hello)Naming.lookup("//" + "onlsbc1.kek.jp" + "/HelloServer")
;
							:
HelloApplet.java: 45 lines, 1516 characters
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$

inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ javac -d $HOME/public_html/mycl
asses Hello.java HelloImpl.java HelloApplet.java
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ rmic -d $HOME/public_html/mycla
sses examples.hello.HelloImpl
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Nov12 ?        00:00:04 init [2]
root         2     1  0 Nov12 ?        00:00:00 [keventd]
root         3     0  0 Nov12 ?        00:00:00 [ksoftirqd_CPU0]
root         4     0  0 Nov12 ?        00:00:00 [kswapd]
root         5     0  0 Nov12 ?        00:00:00 [bdflush]
root         6     0  0 Nov12 ?        00:00:00 [kupdated]
root         7     1  0 Nov12 ?        00:00:00 [i2oevtd]
root         8     1  0 Nov12 ?        00:00:07 [kjournald]
root        47     1  0 Nov12 ?        00:00:00 [khubd]
daemon     108     1  0 Nov12 ?        00:00:00 [portmap]
root       163     1  0 Nov12 ?        00:00:00 /sbin/syslogd
root       166     1  0 Nov12 ?        00:00:00 /sbin/klogd
root       171     1  0 Nov12 ?        00:00:00 /sbin/rpc.statd
root       182     1  0 Nov12 ?        00:00:00 /usr/sbin/lpd
inoue      198     1  0 Nov12 tty1     00:00:00 -bash
root       199     1  0 Nov12 tty2     00:00:00 /sbin/getty 38400 tty2
root       200     1  0 Nov12 tty3     00:00:00 /sbin/getty 38400 tty3
root       201     1  0 Nov12 tty4     00:00:00 /sbin/getty 38400 tty4
root       202     1  0 Nov12 tty5     00:00:00 /sbin/getty 38400 tty5
root       203     1  0 Nov12 tty6     00:00:00 /sbin/getty 38400 tty6
root       570     1  0 Nov13 ?        00:00:03 [rpciod]
root       571     1  0 Nov13 ?        00:00:00 [lockd]
root       791     1  0 Nov13 ?        00:00:00 /usr/sbin/inetd
root       800     1  0 Nov13 ?        00:00:00 /usr/sbin/cron
root       815     1  0 Nov13 ?        00:00:03 /usr/sbin/sshd
root      1620   815  0 08:26 ?        00:00:00 /usr/sbin/sshd
inoue     1622  1620  0 08:26 ?        00:00:06 [sshd]
inoue     1623  1622  0 08:26 pts/0    00:00:01 -bash
root      2712     1  0 14:24 ?        00:00:00 /usr/local/apache2/bin/httpd -k
nobody    2713  2712  0 14:24 ?        00:00:00 [httpd]
nobody    2714  2712  0 14:24 ?        00:00:00 [httpd]
nobody    2715  2712  0 14:24 ?        00:00:00 [httpd]
nobody    2716  2712  0 14:24 ?        00:00:00 [httpd]
nobody    2717  2712  0 14:24 ?        00:00:00 [httpd]
nobody    2821  2712  0 14:27 ?        00:00:00 [httpd]
nobody    2822  2712  0 14:27 ?        00:00:00 [httpd]
root      3002     1  0 14:59 pts/0    00:00:01 /usr/lib/j2se/1.3/bin/i386/nativ
root      3039  3002  0 14:59 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
root      3040  3039  0 14:59 pts/0    00:00:08 /usr/lib/j2se/1.3/bin/i386/nativ
root      3041  3039  0 14:59 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
root      3042  3039  0 14:59 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
root      3043  3039  0 14:59 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
root      3044  3039  0 14:59 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
root      3045  3039  0 14:59 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
root      3046  3039  0 14:59 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
root      3047  3039  0 14:59 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
root      3342  3039  0 15:09 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
root      3563  3039  0 15:28 pts/0    00:00:00 /usr/lib/j2se/1.3/bin/i386/nativ
inoue     3688  1623  0 16:20 pts/0    00:00:00 ps -ef
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ java -Djava.rmi.server.codebase
=http://onlsbc1.kek.jp/~inoue/myclasses/ -Djava.security.policy=$HOME/JavaRMI/ge
tStart/examples/hello/policy examples.hello.HelloImpl
HelloServer bound in registry

	Webブラウザ、IEで "http://onlsbc1.kek.jp/~inoue/hello.html" に
        アクセスすると、"Hello World!"と表示された。 ok.  正常に実行できた。

	Ctl-C で Hello サーバを止める。

	さらに Hello World を修正してテストする。

inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ vi HelloApplet.java
							:
            obj = (Hello)Naming.lookup("//" +
                         getCodeBase().getHost() + "/HelloServer");
//            obj = (Hello)Naming.lookup("//" + "onlsbc1.kek.jp" + "/HelloServer
");
							:
HelloApplet.java: 45 lines, 1514 characters
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$

inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ vi HelloImpl.java
							:
//          Naming.rebind("//onlsbc1.kek.jp/HelloServer", obj);
          Naming.rebind("//" + "localhost/HelloServer", obj);
							:
HelloImpl.java: 37 lines, 1080 characters
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$

inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ javac -d $HOME/public_html/mycl
asses Hello.java HelloImpl.java HelloApplet.java
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ rmic -d $HOME/public_html/mycla
sses examples.hello.HelloImpl
inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$

inoue@onlsbc1:~/JavaRMI/getStart/examples/hello$ java -Djava.rmi.server.codebase
=http://onlsbc1.kek.jp/~inoue/myclasses/ -Djava.security.policy=$HOME/JavaRMI/ge
tStart/examples/hello/policy examples.hello.HelloImpl
HelloServer bound in registry

	Webブラウザ、IEで "http://onlsbc1.kek.jp/~inoue/hello.html" に
        アクセスすると、"Hello World!"と表示された。 ok.  正常に実行できた。

	Ctl-C で Hello サーバを止める。
	
	注. rmiregistry の起動は root でなくてもかまわない。 確認した。







---xxxx