Saxon 9 EE || Schema Validation using command line
We have implemented a validation pipeline in cloud to perform schema validation against dita files and it's working when running in windows while testing it from eclipse but we are having difficulty to figure out the same command to run in linux.
Once the java code deployed to cloud, the command is giving error and failing the process.
below is the command which fails to run in linux
java -cp "/opt/app/saxonlib/saxon9ee.jar;/opt/app/saxonlib/xml-resolver-1.2.jar" com.saxonica.Validate /tmp/input/zipextract/output/ALL-DITA-TOPICS/*.dita -catalog:/opt/app/catalog-dita.xml --multipleSchemaImports:on
Error: Could not find or load main class com.saxonica.Validate Caused by: java.lang.ClassNotFoundException: com.saxonica.Validate
need some help and guidance to fix this. Thanks!!
Updated by Martin Honnen about 1 month ago
I think, with Java and Linux in general, the path separator is the colon
: and not the semicolon
; so try
java -cp "/opt/app/saxonlib/saxon9ee.jar:/opt/app/saxonlib/xml-resolver-1.2.jar"
Updated by Michael Kay about 1 month ago
ClassNotFoundException can only mean one thing: the class is not on the classpath.
Like Martin, I suspect the cause is that you used semicolon as the separator in the path rather than colon.
Please register to edit this issue