Skip to main content
Kofax

MarkView All Components – NoClassDefFoundError while running Verify.bat on C&O server from the command line.

Summary

11928

Applies To

  • ERP System: All
  • MarkView Version: All

Behavior

  • As part of an install or update you may need to run Verify.bat in the in the Capture & Output server. Running the file from the command line may yield the following error message:
    Exception in thread 'main' java.lang.NoClassDefFoundError: com/markview/installer/tools/JavaVersionValidator
    Caused by: java.lang.ClassNotFoundException: com.markview.installer.tools.JavaVersionValidator
            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: com.markview.installer.tools.JavaVersionValidator
    . Program will exit.
    ECHO is off.
  • Verify.bat is unable to run

Known Causes

  • Some files are missing or in another folder, or are corrupted.

Resolution

  • The error message is related to trying to run the Verify.bat file from a different folder (directory). Please try the following:
    • Run Verify.bat from Windows Explorer
    • Run Verify.bat from the command line, but from the folder (directory) where the file is.
      • Use the CD command to move to the folder (directory)
      • Run Verify.bat

Keywords: NoClassDefFoundError,Verify