User's Manual
Appendix A Quick Start Examples 37
Contents of: ./3/A.java
3. Run these commands to compile each file into a separate x subdirectory:
These are the resulting files:
■ ./1/x/A.class
■ ./2/x/A.class
■ ./3/x/A.class
4. Run these three Setup command lines on each A.class file to produce the
three x#.sig files as shown.
a. Run command #1:
The command generates the ./x1.sig file shown in
CODE EXAMPLE A-6 and
produces a console message similar to this indicating successful setup with some
possible differences according to your system characteristics:
package x;
public class A {
public void abc() {}
public void bar() {}
}
package x;
public class A {
public static void abc() {}
}
% javac -d 1 1/A.java
% javac -d 2 2/A.java
% javac -d 3 3/A.java
% java -cp 1:$CLASSPATH com.sun.tdk.signaturetest.Setup \
-static -classpath 1:$RT_JAR -package x -FileName x1.sig
Class path: "1:/opt/jdk1.5.0_09/jre/lib/rt.jar"
Constant checking: on
Found in total: 13185 classes
Selected by -Package: 1 classes
Written to sigfile: 2 classes
STATUS:Passed.