Command line usage: Exception in thread "main" ...


I've downloaded what I believe to be all the prerequisite jars for the
latest pre-compiled css-validator.jar:
$ tree /usr/local
|-- css-validator.jar
|-- jigsaw.jar
|-- servlet-api.jar
|-- tagsoup-1.2.jar
|-- xercesImpl.jar
`-- xml-apis.jar

and have tried to run the usage example from

$ cd /usr/local
$ java -classpath /usr/local -jar css-validator.jar

but get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError:

suggesting that it's not finding the jigsaw.jar file

I'm running:

$java -version
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)
Java HotSpot(TM) Client VM (build 1.5.0_13-121, mixed mode, sharing)

I've tried this on both Mac OS X 10.4 and on Ubuntu 8.04 (java version
is also 1.5) but get the same error message.

I've also tried this with a $CLASSPATH environment variable without success.

Does anyone with more Java experience than I have any ideas please?

Thanks in advance,


Received on Wednesday, 7 May 2008 15:41:56 UTC