W3C home > Mailing lists > Public > www-validator-css@w3.org > May 2008

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

From: Jim Flanagan <jim.u.flanagan@gmail.com>
Date: Wed, 7 May 2008 12:40:20 +0200
Message-ID: <bae0c4300805070340q4eabc722l16fc856c0e91ed13@mail.gmail.com>
To: www-validator-css@w3.org

Hi,

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
http://jigsaw.w3.org/css-validator/DOWNLOAD.html:

$ cd /usr/local
$ java -classpath /usr/local -jar css-validator.jar http://www.w3.org/

but get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/w3c/tools/resources/ProtocolException

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,


Jim
Received on Wednesday, 7 May 2008 15:41:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:20 GMT