On Sun, 2011-05-22 at 12:41 +0100, McGibbney, Lewis John wrote: > Hi list, > > Just checked out eyeball trunk Revision 1125822 from new Apache SVN > repository but I'm having problems setting my classpath! > > I've looked on the old Yahoo dev list but can't get an answer so I know it i > something stupid I'm doing. I get the following log output after adding jars > as instructed in classpath.text > > lewis@lewis-01:~/trunk$ set > CLASSPATH=lib/antlr-2.7.5.jar;lib/arq-extra.jar;lib/arq.jar;lib/commons-logging-1.1.1.jar;lib/commons-logging.jar;lib/concurrent.jar;lib/eyeball.jar;lib/icu4j_3_4.jar;lib/iri.jar;lib/jazzy-core.jar;lib/jena.jar;lib/jenatest.jar;lib/json.jar;lib/junit4.jar;lib/log4j-1.2.12.jar;lib/slf4j-api-1.5.6.jar;lib/slf4j-log4j12-1.5.6.jar;lib/stax-api-1.0.jar;lib/wstx-asl-3.0.0.jar;lib/xercesImpl.jar;lib/xml-apis.jar;lib/xsdlib.jar
The ';' separator character only applies in windows, in the unix world use ':'. What's happening is that ';' ends the command in bash and the shell is then trying to run the remaining entries as if they were commands. > lewis@lewis-01:~/trunk$ set CLASSPATH=lib/* > lewis@lewis-01:~/trunk$ ant test > Buildfile: /home/lewis/trunk/build.xml > > It appears that I've added the jars in /lib to the classpath. I then test > with ant with the following failures > > [junit] Null Test: Caused an ERROR > [junit] com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector > [junit] java.lang.ClassNotFoundException: > com.hp.hpl.jena.eyeball.inspectors.test.TestMoreOwlSyntaxInspector Setting the CLASSPATH shouldn't be necessary for ant, the build.xml does it's own classpath setting. Glancing at the build.xml it looks as if the "test" target is missing some dependency declarations so the test classes aren't being compiled. Try doing "ant build test". Dave
