I'm trying to validate simple HTML file with this code:
public static void main(String[] args)
{
String xhtml = "<html><body><p>Hello, world!</p></body></html>";
ValidationResponse response = new ValidatorBuilder().html().validate(xhtml);
System.out.println(response.valid());
}
And result:
Exception in thread "main" java.lang.NoClassDefFoundError: com/rexsl/test/AssertionPolicy at com.rexsl.w3c.ValidatorBuilder.(ValidatorBuilder.java:64) at HTMLValidator.main(HTMLValidator.java:10)
How to fix this?