Forum Discussion

Awesome's avatar
Awesome
Frequent Contributor
17 years ago

'Could not find the main class' when trying to run WSI tool

I get the following error when trying to run the WSI compliance tool.
Thanks for your help!

-----Tool Location:-----
C:\Program Files\wsi-test-tools

-----ERROR MSG----
Running WSI Analyzer for [SoapBinding]
directory: C:\Program Files\wsi-test-tools\java\bin
command: [cmd.exe, /C, Analyzer, -config, C:\DOCUME~1\Bsmith\LOCALS~1\Temp\wsi-analyzer-config61808.xml, -assertionDescription, true]
java.lang.NoClassDefFoundError: Files\wsi-test-tools\\java\lib\wsi-test-tools/jar;C:\Program
Caused by: java.lang.ClassNotFoundException: Files\wsi-test-tools\\java\lib\wsi-test-tools.jar;C:\Program
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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: Files\wsi-test-tools\\java\lib\wsi-test-tools.jar;C:\Program.  Program will exit.
Exception in thread "main"

4 Replies

  • Awesome's avatar
    Awesome
    Frequent Contributor
    tried both 2.51 and 2.52
    reinstalled WSI in C:\Program Files\wsi-test-tools

    still same error.

    any suggestions?
    thanks.
  • Awesome's avatar
    Awesome
    Frequent Contributor
    moved the dir to:
    C:\wsi-test-tools\java\bin

    still same error... this used to work, so i'm a bit stumped.
    thanks for your help!

    Running WSI Analyzer for [SoapBinding]
    directory: C:\wsi-test-tools\java\bin
    command: [cmd.exe, /C, Analyzer, -config, C:\DOCUME~1\username\LOCALS~1\Temp\wsi-analyzer-config22549.xml, -assertionDescription, true]
    The system cannot find the path specified.
    java.lang.NoClassDefFoundError: org/wsi/test/analyzer/BasicProfileAnalyzer
    Caused by: java.lang.ClassNotFoundException: org.wsi.test.analyzer.BasicProfileAnalyzer
    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)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: org.wsi.test.analyzer.BasicProfileAnalyzer.  Program will exit.
    Exception in thread "main"
  • Awesome's avatar
    Awesome
    Frequent Contributor
    added the location to the system path: C:\wsi-test-tools
    however, now i'm getting a usage error...