Forum OpenACS Q&A: error building nsjava (bad class file: NsSet.class)

I'm trying to build nsjava for AOLserver 3.2 on Red Hat GNU/Linux 6.2 using JDK 1.3.0, and I'm getting the following error...
[root@roam nsjava-0.0.9]# make
building "java"
make[1]: Entering directory `/tmp/nsjava-0.0.9/java'
javac -g -classpath
"/usr/local/java/lib/tools.jar":"/usr/local/java/jre/lib/rt.jar":/tmp/nsjava-0.0.9/java
../java/nsjava/NsDb.java
javac -g -classpath
"/usr/local/java/lib/tools.jar":"/usr/local/java/jre/lib/rt.jar":/tmp/nsjava-0.0.9/java
../java/nsjava/NsPg.java
javac -g -classpath
"/usr/local/java/lib/tools.jar":"/usr/local/java/jre/lib/rt.jar":/tmp/nsjava-0.0.9/java
../java/nsjava/NsLog.java
javac -g -classpath
"/usr/local/java/lib/tools.jar":"/usr/local/java/jre/lib/rt.jar":/tmp/nsjava-0.0.9/java
../java/nsjava/NsTcl.java
javac -g -classpath
"/usr/local/java/lib/tools.jar":"/usr/local/java/jre/lib/rt.jar":/tmp/nsjava-0.0.9/java
../java/nsjava/JavaMonitorLock.java
javac -g -classpath
"/usr/local/java/lib/tools.jar":"/usr/local/java/jre/lib/rt.jar":/tmp/nsjava-0.0.9/java
test_nsjvm.java
test_nsjvm.java:11: cannot access NsSet
bad class file: /tmp/nsjava-0.0.9/java/NsSet.class
class file contains wrong class: nsjava.NsSet
Please remove or make sure it appears in the correct subdirectory of
the classpath.
      NsSet   selection;
      ^
1 error
make[1]: *** [test_nsjvm.class] Error 1
make[1]: Leaving directory `/tmp/nsjava-0.0.9/java'
make: *** [all] Error 1
This is odd.  The error indicates that there is a NsSet.class file in "/tmp/nsjava-0.0.9/java".  This file shouldn't be there.  Either there is a problem with how javac outputs the .class file on your system or you inadvertantly copied the NsSet.class file from the java/nsjava subdirectory into the java directory.  Are there other .class files in the java directory?  When I build on my machine, the only class file that exists in the java directory after building is the test_nsjvm.class file.  The rest of the .class files should be in the nsjava subdirectory.  If NsSet.class is the only .class file in the java directory, try removing it and running make again.