This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
I want to download CssValidator to my local machine. I have Java installed on c:\Program Files\Java\jdk1.6.0_21. I am not a Java person at this moment so I am unwilling to install and config CVS; Ant; Appach; Tomcat; etc. I downloaded css-validator.jar at c:\Program Files\Java\jdk1.6.0_21\css-validator.jar which is exact the same level as c:\Program Files\Java\jdk1.6.0_21\lib The issue is: C:\Program Files\Java\jdk1.6.0_21>java -jar css-validator.jar http://www.w3.org Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/tools/resourc es/ProtocolException Caused by: java.lang.ClassNotFoundException: org.w3c.tools.resources.ProtocolExc eption at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Could not find the main class: org.w3c.css.css.CssValidator. Program will exit. I guess I missed a lot. Do I have to go through all these Ant-Appach-Tomcat things? What is the easiest way to run CSSValidator on local machine? Thanks a lot!
Created attachment 1007 [details] Patches the build.xml file for current available dependencies
This are issues found in dev channel for compiling the jar-file on OS X. (mostly unreachable versions of packages)
I tried re-compile it successfully on my mac os since the official one is a bit out of date and can't run on my machine. I can offer the build.xml for ant to build the jar package if necessary.
Here is the patch of build.xml to make the build work on my mac os
Created attachment 1067 [details] Patch file to make it works on my mac Here's the patch against the build.xml of the mainline in cvs repo.