java - ClassNotFoundException error when running css-validator.jar -



java - ClassNotFoundException error when running css-validator.jar -

i trying implement css-validator w3 , has failed every attempt, raising error message.

here error getting:

"directory redacted"\framework-web>java -jar "directory redacted"\downloads\ css-validator.jar http://www.w3.org exception in thread "main" java.lang.noclassdeffounderror: org/w3c/tools/resourc es/protocolexception @ java.lang.class.getdeclaredmethods0(native method) @ java.lang.class.privategetdeclaredmethods(class.java:2531) @ java.lang.class.getmethod0(class.java:2774) @ java.lang.class.getmethod(class.java:1663) @ sun.launcher.launcherhelper.getmainmethod(launcherhelper.java:494) @ sun.launcher.launcherhelper.checkandloadmain(launcherhelper.java:486) caused by: java.lang.classnotfoundexception: org.w3c.tools.resources.protocolexc eption @ java.net.urlclassloader$1.run(urlclassloader.java:366) @ java.net.urlclassloader$1.run(urlclassloader.java:355) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(urlclassloader.java:354) @ java.lang.classloader.loadclass(classloader.java:425) @ sun.misc.launcher$appclassloader.loadclass(launcher.java:308) @ java.lang.classloader.loadclass(classloader.java:358) ... 6 more

what error message indicate , how prepare it?

i grateful when cluemein included actual filenames without original versions , ones renamed, still couldn't css-validator run. downloaded recent css-validator.jar , recent build.xml file http://dev.w3.org/cvsweb/2002/css-validator/build.xml?rev=1.24;content-type=text%2fplain.

i set build.xml file , jar in directory , ran

ant prepare

ant downloaded expected jar versions me , renamed them lib file. when ran

java -jar css-validator.jar http://awesomesite.com

it worked fine.

java css-validator

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -