Test
- Packages:
- A toy demonstration of packages 'pckg1', 'pckg1.subPckg', and 'pckg2'.
- ./
-
- Pckg.java
an application program that uses ...
- pckg1/
- C1.java
i.e., pckg1.C1
- C2.java i.e., pckg1.C2
- subPckg/
- S1.java i.e., pckg1.subPckg.S
- C2.java i.e., pckg1.C2
- pckg2/
- D1.java i.e., pckg2.D
- pckg_use/
- A1.java
i.e., pckg_use.A1, an application
- A2.java i.e., A2 (no package), an application
- Pckg.java
an application program that uses ...
- Compile and run the programs from './' :
- ./README
- which is
-
# Small java test programs etc. # Test pckg1 and pckg2 (Java packages) javac *.java pckg*/*.java java Pckg java pckg_use/A1 java -classpath '.:pckg_use' A2 java pckg1/C1 java pckg1/C2 java pckg1/subPckg/S1 java pckg2/D1 rm *.class pckg*/*.class pckg*/*/*.class # To make the javadoc documentation: # mkdir doc # cd doc # javadoc -sourcepath '..' pckg* pckg1.subPckg # then start at doc/index.html # To make a .jar archive file, 'blah.jar', of all the .class # files in 'blah/' inc. any of its subdirectories: # jar cf blah.jar `find blah -name "*.class"`