getting ClassNotFoundException running 80legsResultDownloader.jar

  • Problem
  • Updated 4 years ago
I am attempting the following command line call
java -jar 80legsResultDownloader.jar -token ######### -downloadLocation /home/mydir/80leggs/enddir -analysisOnly 1

which results in:
Exception in thread "main" java.lang.NoClassDefFoundError: com/eightylegs/customer/api/IEightyLegsConnector
Caused by: java.lang.ClassNotFoundException: com.eightylegs.customer.api.IEightyLegsConnector
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: com.resultdownloader.main.ResultDownloader. Program will exit.

Any direction would be helpful.
Photo of richardR

richard

  • 9 Posts
  • 0 Likes

Posted 4 years ago

  • 2
Photo of Aliya ViraniAV

Aliya Virani, Employee

  • 11 Posts
  • 0 Likes
You may be missing the lib folder in the same folder as the 80legsResultDownloader.jar. This lib folder should be in the 80legsResultDownloaderv1.x.zip file. The lib folder has the API that is required by the jar. This error is being thrown because the API is missing.
Photo of richardR

richard

  • 9 Posts
  • 0 Likes
Aliya

Thanks that was simple. You were right the lib folder did not get moved to the right place.