Problems with setting up css-validator

Hi,

We are trying to get css-validator work here at the Hungarian W3C
office.

I've downloaded today css-validator.jar from
http://jigsaw.w3.org/css-validator/DOWNLOAD.html, and run: java -jar
css-validator.jar http://www.w3.org/, but the result was not the
expected one:

$ java -jar css-validator.jar http://www.w3.org/
Exception in thread "main" java.lang.NoClassDefFoundError:
org/w3c/tools/resources/ProtocolException
Caused by: java.lang.ClassNotFoundException:
org.w3c.tools.resources.ProtocolException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

Yes, jigsaw.jar is in $CLASSPATH.

Then I tried without java -jar:

$ java -cp css-validator.jar:jigsaw.jar org.w3c.css.css.CssValidator http://www.w3.org/
org.w3c.css.util.Messages: couldn't load properties de
  java.io.FileNotFoundException: /file:/home/vmiklos/w3c/css-validator/css-validator.jar!/org/w3c/css/util/Messages.properties.de (No such file or directory)
org.w3c.css.util.Messages: couldn't load properties en
  java.io.FileNotFoundException: /file:/home/vmiklos/w3c/css-validator/css-validator.jar!/org/w3c/css/util/Messages.properties.en (No such file or directory)
org.w3c.css.util.Messages: couldn't load properties es
  java.io.FileNotFoundException: /file:/home/vmiklos/w3c/css-validator/css-validator.jar!/org/w3c/css/util/Messages.properties.es (No such file or directory)
org.w3c.css.util.Messages: couldn't load properties fr
  java.io.FileNotFoundException: /file:/home/vmiklos/w3c/css-validator/css-validator.jar!/org/w3c/css/util/Messages.properties.fr (No such file or directory)
org.w3c.css.util.Messages: couldn't load properties it
  java.io.FileNotFoundException: /file:/home/vmiklos/w3c/css-validator/css-validator.jar!/org/w3c/css/util/Messages.properties.it (No such file or directory)
org.w3c.css.util.Messages: couldn't load properties nl
  java.io.FileNotFoundException: /file:/home/vmiklos/w3c/css-validator/css-validator.jar!/org/w3c/css/util/Messages.properties.nl (No such file or directory)
org.w3c.css.util.Messages: couldn't load properties ja
  java.io.FileNotFoundException: /file:/home/vmiklos/w3c/css-validator/css-validator.jar!/org/w3c/css/util/Messages.properties.ja (No such file or directory)
org.w3c.css.util.Messages: couldn't load properties pl
  java.io.FileNotFoundException: /file:/home/vmiklos/w3c/css-validator/css-validator.jar!/org/w3c/css/util/Messages.properties.pl-PL (No such file or directory)
org.w3c.css.util.Messages: couldn't load properties cn
  java.io.FileNotFoundException: /file:/home/vmiklos/w3c/css-validator/css-validator.jar!/org/w3c/css/util/Messages.properties.zh-cn (No such file or directory)
{output=text, medium=all, warning=2, profile=css21, lang=en}
Exception in thread "main" java.lang.NullPointerException
        at org.w3c.css.util.Messages.getString(Messages.java:93)
        at org.w3c.css.css.CssValidator.main(CssValidator.java:135)

$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)

Is this a known problem?

Please leave us in CC, I'm not subscribed.

Thanks!

Received on Tuesday, 20 January 2009 09:26:04 UTC