Sun Microsystems 2 Tablet Accessory User Manual


 
36 Signature Test Tool 2.0 User’s Guide April 2008
Merge Examples
This section illustrates an example of running Merge which involves these three
steps:
1. Compiling three .java files to produce .class files as a source for the signature
files used in the example
2. Running the Setup command on each .class file to produce its signature file
3. Using Merge to combine the files and see the results.
Running Merge Examples
These Merge examples use the environment variables listed in TABLE A-1, with
example value settings and later command lines shown using UNIX system
command syntax.
1. Set up the environment along with the environment variable settings in
TABLE A-1.
2. Create each of the following files as listed in a separate directory but with the
same file name:
Contents of: ./1/A.java
Contents of: ./2/A.java
TABLE A-1 Environment Variable Settings for Merge Examples
Environment
Variable Description
CLASSPATH
Must include the sigtestdev.jar file, for example set to:
/sigtest-1.5/lib/sigtestdev.jar.
RT_JAR The location of the runtime rt.jar file , for example set to:
/opt/jdk1.5.0_09/jre/lib/rt.jar.
package x;
public class A {
public void abc() {}
public void foo() {}
}