jdk/src/linux/doc/man/ja/rmic.1
author jjg
Tue, 11 Mar 2008 13:14:55 -0700
changeset 168 25697c18650b
parent 2 90ce3da70b43
child 2692 345bc8d65b19
permissions -rw-r--r--
6307187: clean up code for -Xlint:options Summary: introduce common code for handling one-of and any-of options Reviewed-by: mcimadamore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
'\" t
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
.\" Copyright 2000-2004 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
.\" This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
.\" under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
.\" published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
.\" This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
.\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
.\" version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
.\" accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
.\" You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
.\" 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
.\" Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
.\" CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
.\" have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
.TH rmic 1 "2004 年 6 月 22 日"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
.SH "名前"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
rmic \- Java RMI スタブコンパイラ
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
.\"  This document was created by saving an HTML file as text
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
.\"  from the JavaSoft web site:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
.\" http://java.sun.com/products/jdk/1.2/docs/tooldocs/tools.html
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
.\"  and adding appropriate troff macros.  Because the JavaSoft web site 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
.\"  man pages can change without notice, it may be helpful to diff
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
.\"  files to identify changes other than new functionality. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
.SH "形式"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
.B rmic 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
[
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
.BI options 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
.I package-qualified-class-names
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
.SH "機能説明"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
.IX "Java RMI stub compiler" "" "Java RMI stub compiler \(em \fLrmic\fP"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
.IX "rmic" "" "\fLrmic\fP \(em Java RMI stub compiler"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
.B rmic 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
コンパイラは、リモートオブジェクト用のスタブおよび
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
スケルトンクラスファイル (JRMP プロトコル) とスタブ
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
および Tie クラスファイル (IIOP プロトコル) を生成します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
これらのクラスファイルは、リモートオブジェクト
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
実装クラスである、コンパイルされた Java プログラミング言語
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
クラスから生成されます。リモート実装クラスは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
インタフェース \f3java.rmi.Remote\f1 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
を実装するクラスです。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
.B rmic 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
コマンドで指定されるクラスは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
.BR javac (1) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
コマンドで正常にコンパイルされ、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
完全にパッケージ修飾されたクラスで
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
なければなりません。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
次に示す例では、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
.B HelloImpl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
というクラスファイルに対して
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
.B rmic
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
を実行しています。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
rmic hello.HelloImpl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
.B HelloImpl_Stub.class 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
ファイルを (クラスのパッケージに対して指定された)  
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
.B hello
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
サブディレクトリに作成します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
JRMP プロトコルサーバ側エンティティである
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
リモートオブジェクトのスケルトンには、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
リモートオブジェクト実装の呼び出しを
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
ディスパッチするメソッドがあります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
リモートオブジェクトの Tie は、スケルトンに似た
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
サーバ側エンティティですが、IIOP プロトコル
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
を使用してクライアントと通信します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
スタブは、リモートオブジェクトのプロキシで、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
実際のリモートオブジェクト実装が存在するサーバに、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
リモートオブジェクトに対するメソッド呼び出しを転送します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
クライアントのリモートオブジェクトへの参照は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
実際にはローカルスタブへの参照です。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
デフォルトでは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
.B rmic 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
は \-v1.2 オプションが
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
指定された場合と同様に 1.2 JRMP スタブプロトコルを
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
使用するスタブクラスを生成します (1.5 より前の
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
リリースでは、\-vcompat オプションがデフォルト)。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
IIOP プロトコル用のスタブクラスおよび Tie クラスを
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
生成するには、\-iiop オプションを使用します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
スタブは、リモートインタフェースのみを実装し、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
リモートオブジェクトによっても実装されるローカル
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
インタフェースは実装しません。スタブはリモート
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
オブジェクトとまったく同じリモートインタフェースの
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
セットを実装するため、クライアントはキャストおよび
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
型チェックに Java 言語の組み込み演算子を使用できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
IIOP の場合は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
.B PortableRemoteObject.narrow 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
メソッドを
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
使用する必要があります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
.SH オプション
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
.BI \-bootclasspath " path"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
ブートストラップクラスファイルの位置をオーバーライドします。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
.BI \-classpath " path"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
.B rmic
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
がクラスを探すのに用いるパスを
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
.I path
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
で指定します。この指定値は、デフォルトおよび
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
.B CLASSPATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
環境変数の設定値をオーバーライドします。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
複数のディレクトリを指定する場合はコロンで区切ります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
したがって
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
.I path
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
の通常の形式は次のようになります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
.ti +5n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
.BI .:< your_path >
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
以下に例を示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
.ti +5n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
.B .:/usr/local/java/classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
.BI \-d " directory"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
クラス階層のルートディレクトリを指定します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
このオプションを使用して、スタブ、スケルトン、および Tie ファイルの出力先ディレクトリを指定できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
たとえば、次のコマンドを入力します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
.RS 5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
rmic \-d /java/classes foo.MyClass
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
この例では、MyClass から派生したスタブおよび
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
スケルトンクラスをディレクトリ /java/classes/foo 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
に配置します。\-d オプションが指定されていない場合、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
デフォルトの動作は「\-d .」が指定された場合と同様です。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
ターゲットクラスのパッケージ階層は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
現在のディレクトリに作成され、スタブ/Tie/スケルトン
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
ファイルはその階層内に配置されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
(以前の一部のバージョンの 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
.B rmic 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
では、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
\-d が指定されなかった場合、パッケージ階層は作成されず、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
すべての出力ファイル
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
は、現在のディレクトリ内に直接配置されました。) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
.BI \-extdirs " path"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
インストールされている拡張機能の位置を上書きします。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
.B \-g
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
ローカル変数を含む、すべてのデバッグ情報の
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
生成を有効にします。デフォルトでは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
行番号情報のみが生成されます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
.B \-idl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
.B rmic
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
によって、指定したクラスおよび参照されたクラスの
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
.SM OMG IDL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
が生成されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
.SM IDL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
では、プログラミング言語に依存せずに、宣言するだけでオブジェクトの 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
.SM API
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
を指定できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
.SM IDL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
.SM CORBA
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
バインディングを提供する任意の言語 (Java、C++ など) を使用して、メソッドおよびデータの
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
書き込みおよび呼び出しを行うときの仕様として使われます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
.B \-idl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
オプションは、合わせて以下のオプションも指定できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
.TP 5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
.BR \-always " または " \-alwaysgenerate
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
既存のスタブ、Tie、および \s-1IDL\s0 が入力クラスより新しいときでも、強制的に生成し直します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
.PD 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
.B \-factory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
生成された IDL で factory キーワードを使います。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
.B \-idlModule fromJavaPackage[.class] toIDLModule
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
.B IDLEntity
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
パッケージのマッピングを指定します。次に例を示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
.in +5n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
.ft 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
\-idlModule foo.bar
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
my::real::idlmod.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
.ft 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
.in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
.B \-idlFile fromJavaPackage[.class] toIDLFile
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
.B IDLEntity
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
ファイルのマッピングを指定します。次に例を示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
.ti +5n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
.B \-idlFile test.pkg.X TEST16.idl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
.PD
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
.B \-iiop
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
.B rmic
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
.SM JRMP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
のスタブとスケルトンクラスの代わりに、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
.SM IIOP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
のスタブと Tie クラスを生成します。スタブクラスは、リモートオブジェクトの
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
ローカルプロキシで、クライアントがサーバに呼び出しを送信するときに
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
使われます。各リモートインタフェースにはスタブクラスが必要です。スタブクラス
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
によってリモートインタフェースが実装されます。クライアントでリモートオブジェクト
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
を参照すると、実際にはスタブを参照することになります。Tie クラスは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
サーバ側で受信した呼び出しを処理し、その呼び出しを適切な実装クラスにディスパッチ
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
するときに使われます。各実装クラスには、Tie クラスが必要です。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
.B \-iiop
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
を指定して
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
.B rmic
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
を起動すると、次の命名規約に準拠したスタブと Tie が生成されます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
.in +5n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
.ft 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
_<implementationName>_stub.class
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
_<interfaceName>_tie.class
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
.ft 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
.in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
.B \-iiop
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
オプションは、合わせて以下のオプションも指定できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
.ne 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
.bp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
.PD 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
.TP 5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
.BR \-always " または " \-alwaysgenerate
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
既存のスタブ、Tie、および \s-1IDL\s0 が入力クラスより新しいときでも、強制的
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
に生成し直します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
.B \-nolocalstubs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
同じプロセスのクライアントとサーバに対して最適化されたスタブを作成しません。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
.B \-noValueMethods
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
.B \-idl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
オプションとともに使用する必要があります。発行された
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
.SM IDL\s0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
に、valuetype メソッドおよび初期化子を追加しません。このメソッドおよび初期化子
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
は、valuetype のオプションです。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
.B \-idl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
オプションを使うときは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
.B \-noValueMethods
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
オプションを指定しない限り生成されます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
.B \-poa 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
継承を
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
.BR org.omg.CORBA_2_3.portable.ObjectImpl から
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
.BR org.omg.PortableServer.Servant\. へ変更します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
Portable Object Adapter (POA) の
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
.BR PortableServer
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
モジュールは、ネイティブ の servant 型を定義します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
Java プログラミング言語では、servant 型は、Java の 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
.BR org.omg.PortableServer.Servant
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
クラスにマップされます。これはすべての POA サーバント実装の基底クラスとして
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
機能し、アプリケーション開発者が呼び出せる多数のメソッドを提供します。また、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
POA 自体が読み出したり、サーバント動作を制御するためにユーザが上書きした
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
りできるメソッドも提供します。CORBA V 2.3.1 の「OMG IDL to Java Language Mapping Specfication (ptc/00-01-08.pdf)」に基づいています。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
.PD
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
.TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
.B \-J
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
任意の java オプションと
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
併用した場合、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
\-J の後のオプション (
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
.B \-J 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
とオプションの間は空白文字をいれない) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
を java インタプリタに
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
渡します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
.B \-keepgenerated
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
スタブ、スケルトンおよび tie クラス用に生成された .java ソースファイルを保持し、.class ファイルと同じディレクトリに書き込みます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
.B \-nowarn
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
警告をオフにします。このオプションを使用した場合、コンパイラは警告を出力しません。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
.B \-vcompat
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
1.1 と 1.2 の両方の JRMP スタブプロトコル
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
バージョンと互換性があるスタブおよび
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
スケルトンクラスを生成します (1.5 より前の
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
リリースでは、このオプションはデフォルト)。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
生成されたスタブクラスは、JDK 1.1 の仮想マシンに
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
読み込まれる場合、1.1 のスタブプロトコルバージョンを
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
使用し、1.2 以降の仮想マシンに読み込まれる場合は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
1.2 のスタブプロトコルバージョンを使用します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
生成されたスケルトンクラスは、1.1 と 1.2 の両方の
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
スタブプロトコルバージョンをサポートします。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
生成されたクラスは、両方の操作モードをサポート
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
するため、比較的サイズが大きくなります。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
.B \-verbose
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
コンパイラとリンカに詳細情報を出力させます。具体的には、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
コンパイルされるクラスファイル、およびロードされる
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
クラスファイルに関する情報が出力されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
.TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
.B  \-v1.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
JDK 1.1 のスタブプロトコルバージョン
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
専用のスタブおよびスケルトンを作成します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
このオプションは、JDK 1.1 から 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
.B rmic 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
によって生成され、アップグレードできない 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
(および動的クラスローディングが使用
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
されていない) 既存の静的に配備された
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
スタブクラスと直列化互換性のあるスタブ
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
クラスを生成する場合にのみ使用します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
.B  \-v1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
(デフォルト) 1.2 JRMP のスタブプロトコル
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
バージョン専用のスタブクラスを生成します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
スケルトンクラスは 1.2 のスタブプロトコル
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
バージョンで使用されないため、このオプション
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
ではスケルトンクラスが生成されません。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
生成されたスタブクラスが JDK 1.1 の仮想マシンに
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
読み込まれた場合は、機能しません。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
.SH 環境変数
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
.B CLASSPATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
ユーザ定義クラスへのパスをシステムに通知するために使用します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
ディレクトリはコロンで
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
区切ります。以下に例を示します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
.ti +5n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
.B .:/usr/local/java/classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
.SH 関連項目
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
.BR java (1),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
.BR javac (1),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
.BR CLASSPATH