The error shows up like this:
user:/home/data/SemanticVectors/semanticvectors-3.8/test$ java pitt.search.semanticvectors.BuildIndex
Exception in thread "main" java.lang.NoClassDefFoundError: pitt/search/semanticvectors/BuildIndex
Caused by: java.lang.ClassNotFoundException: pitt.search.semanticvectors.BuildIndex
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: pitt.search.semanticvectors.BuildIndex. Program will exit.
I'm not seeing the error you're saying it might be but I don't remember setting up any classpaths to the index at all. Not sure if that could still be it.
Is there in error in my how I'm going about it some other way perhaps? I noticed that it says in the compiling stage with the ant command it reccommends the compiler be upgraded but it also says that it's done successfully. Is it possible thats it though?
This is how the process has been for me as a whole so far if that helps:
user:~$ cd /home/data/SemanticVectors/semanticvectors-3.8/
user:/home/data/SemanticVectors/semanticvectors-3.8$ ls
AUTHORS build.xml doc lib src thirdparty
build dist index LICENSE test
user:/home/data/SemanticVectors/semanticvectors-3.8$ ant
Buildfile: /home/data/SemanticVectors/semanticvectors-3.8/build.xml
init:
compile-deps:
compile:
doc:
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] Loading source files for package pitt.search.lucene...
[javadoc] Loading source files for package pitt.search.semanticvectors...
[javadoc] Loading source files for package pitt.search.semanticvectors.vectors...
[javadoc] Constructing Javadoc information...
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/hashing/Bobcat.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(ch/akuhn/edu/mit/tedlab/SMat.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/VectorStoreWriterTest.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/VectorStoreWriterTest$1.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/VectorStoreWriter$1.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/VectorStoreUtils$1.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/VectorStoreReaderLuceneTest.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/VectorStoreReaderLuceneTest$2.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/VectorStoreReaderLuceneTest$1.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/VectorStoreReaderLucene$1.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/VectorStoreReader$1.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/VectorStoreRAMTest.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/VectorStoreDeterministicTest.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/TestUtils.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/Search$1.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/LuceneUtils$1.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/FlagConfigTest.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/CompoundVectorBuilderTest.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/BuildPositionalIndex$1.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/BuildIndex$1.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/AllTests.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/vectors/VectorUtilsTest.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/vectors/VectorFactory$1.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/vectors/RealVectorTest.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/vectors/PermutationUtilsTest.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/vectors/ComplexVectorTest.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/vectors/ComplexVector$1.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] warning: /home/data/SemanticVectors/semanticvectors-3.8/lib/semanticvectors-3.8.jar(pitt/search/semanticvectors/vectors/BinaryVectorTest.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javadoc] It is recommended that the compiler be upgraded.
[javadoc] Standard Doclet version 1.6.0_27
[javadoc] Building tree for all the packages and classes...
[javadoc] Building index for all the packages and classes...
[javadoc] Building index for all classes...
[javadoc] Generating /home/data/SemanticVectors/semanticvectors-3.8/doc/stylesheet.css...
[javadoc] 28 warnings
jardist:
tardist:
[tar] Nothing to do: /home/data/SemanticVectors/semanticvectors-3.8/dist/semanticvectors-3.8-src.tar is up to date.
[gzip] Nothing to do: /home/data/SemanticVectors/semanticvectors-3.8/dist/semanticvectors-3.8-src.tar.gz is up to date.
zipdist:
build-all:
BUILD SUCCESSFUL
Total time: 4 seconds
user:/home/data/SemanticVectors/semanticvectors-3.8$ cd test
user:/home/data/SemanticVectors/semanticvectors-3.8/test$ export CLASSPATH=./lib/lucene-core-3.6.2.jar:./lib/lucene-demo-3.6.2.jar:/home/data/SemanticVectors/semanticvectors-3.8
user:/home/data/SemanticVectors/semanticvectors-3.8/test$ java org.apache.lucene.demo.IndexFiles -docs .
Indexing to directory 'index'...
adding ./175.txt
adding ./index/_1.nrm
adding ./index/_1.tii
adding ./index/_1.fdt
adding ./index/_1.tis
adding ./index/_2.fdx
adding ./index/_1.fnm
adding ./index/_2.fdt
adding ./index/_1.fdx
adding ./index/segments_2
adding ./index/segments.gen
adding ./index/_1.frq
adding ./index/_1.prx
adding ./index/write.lock
adding ./lib/set
adding ./lib/lucene-core-3.6.2.jar
adding ./lib/index/_0.tii
adding ./lib/index/_0.fnm
adding ./lib/index/_0.nrm
adding ./lib/index/_0.frq
adding ./lib/index/segments_1
adding ./lib/index/segments.gen
adding ./lib/index/_0.fdx
adding ./lib/index/_0.fdt
adding ./lib/index/_0.prx
adding ./lib/index/_0.tis
adding ./lib/semanticvectors-3.8.jar
adding ./lib/lucene-demo-3.6.2.jar
1794 total milliseconds
user:/home/data/SemanticVectors/semanticvectors-3.8/test$ java pitt.search.semanticvectors.BuildIndex
Exception in thread "main" java.lang.NoClassDefFoundError: pitt/search/semanticvectors/BuildIndex
Caused by: java.lang.ClassNotFoundException: pitt.search.semanticvectors.BuildIndex
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: pitt.search.semanticvectors.BuildIndex. Program will exit.