I am trying to use Syns2Index utility to convert the WordNet into a Lucene index. First I downloaded the latest JDK and Lucene 2.0, but soon realized that both were too new for compiling Syns2Index.java. Next, got down to j2sdk1.4.2_13 and Lucene 1.4.3. by deciphering error messages. (I am running XP SP2)
I have copied the java\org\apache\lucene directory in the same folder as the Syns2Index.java file. I have a feeling that my classpath is most likely set right (or at least close), but I get a huge amount of identical compile errors. Command used: D:\InfringeDetector\JavaLucene>javac -classpath "D:\Project\JavaLucene; C:\j2sdk1.4.2_13" D:\Project\JavaLucene\org\apache\lucene\wordnet\Syns2 Index.java Compile results (posting just a few from the bottom of my screen): ^ C:\j2sdk1.4.2_13\java\nio\DirectByteBuffer.java:843: cannot resolve symbol symbol : method assert (boolean) location: class java.nio.DirectByteBuffer assert (off <= lim); ^ C:\j2sdk1.4.2_13\java\nio\DirectByteBuffer.java:934: cannot resolve symbol symbol : method assert (boolean) location: class java.nio.DirectByteBuffer assert (off <= lim); ^ C:\j2sdk1.4.2_13\java\nio\Bits.java:642: cannot resolve symbol symbol : method assert (boolean) location: class java.nio.Bits assert (reservedMemory > -1); ^ C:\j2sdk1.4.2_13\java\lang\CharacterDataLatin1.java:284: cannot resolve symbol symbol : method assert (boolean) location: class java.lang.CharacterDataLatin1 assert (data.length == (256 * 2)); ^ C:\j2sdk1.4.2_13\java\lang\CharacterData.java:956: cannot resolve symbol symbol : method assert (boolean) location: class java.lang.CharacterData assert (data.length == (678 * 2)); ^ C:\j2sdk1.4.2_13\java\nio\DirectByteBufferR.java:165: cannot resolve symbol symbol : method assert (boolean) location: class java.nio.DirectByteBufferR assert (pos <= lim); ^ C:\j2sdk1.4.2_13\java\nio\DirectByteBufferR.java:479: cannot resolve symbol symbol : method assert (boolean) location: class java.nio.DirectByteBufferR assert (off <= lim); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -deprecation for details. 100 errors 206 warnings I have to admit that I am fairly new to Java, but past the HelloWorld setups. I have been banging my head against the wall and Google for 10 hours. Please help!!! -marie