What would be the good directory to run that command from? The one containing BaseX.jar?
Well, you'll only succeed if the argument of your -cp argument points to a JAR file, or a directory with Java classes. Otherwise, the Java runtime environment will have no clue where to locate the code to be executed.