- From: Dave Ulm <davidulm@xbox.com>
- Date: Tue, 12 Oct 2004 10:00:31 -0700
- To: <www-validator-css@w3.org>
- Message-ID: <FD16260E2EDF204E80A22FB904A425C30A13414D@WIN-MSG-10.wingroup.windeploy.ntdev.mi>
I have a couple of real quick questions regarding the CSS Validator... I have downloaded the software and wanted to run it in a command prompt. In following the procedure detailed on http://dev.w3.org/cvsweb/~checkout~/2002/css-validator/RUN.html?rev=1.3& content-type=text/plain , I have followed these to the letter and keep getting the following error. Exception in thread "main" java.lang.NoClassDefFoundError: c:\cssvalidator\org\w3c\css\css\StyleSheetCom Any Idea why this is happening would be helpful (see below) The simplest way is the following: 1. Get a Java interpreter and install it. As of Jigsaw, Java version 1.1 is required. You can get Sun's Java intepreter for free from: http://www.javasoft.com 2. Set your CLASSPATH environment variable in order to include validator's classes. To do this: On Windows set CLASSPATH=<instdir>\validator.zip On UNIX export CLASSPATH=<instdir>/validator.zip Where <instdir> should be substitued with the absolute path of the directory in which you unpacked validator. 3. Check that your PATH setting allow you to run the Java interpreter. This will usually be the case if you have installed Sun's JDK. 4. Run the validator: java org.w3c.css.css.StyleSheetCom <your-file-or-URI> If you launch the validator with no arguments, it gives you all available arguments on command line. Here is some examples : java org.w3c.css.css.StyleSheetCom http://www.w3.org/ or java org.w3c.css.css.StyleSheetCom http://style.verso.com/stylebot.html?family=1&doc=url4 __________________________________________________________ Dave Ulm | Microsoft Corporation | Xbox.com/Live Office: +1.425.703.2964 Mobile: +1.206.714.8873 Fax: +1.425.936.7329 Email: davidulm@microsoft.com Messenger: dcdulm@msn.com
Received on Tuesday, 12 October 2004 17:04:11 UTC