I've made a program which uses the Apache Commons io and lang3 libraries.
It runs fine in eclipse but I can't get it to run from cmd and it comes up with the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/la ng3/StringUtils
at mainActivity.main(mainActivity.java:37)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.StringUtils
at java.net.URLClassLoader$1.run(Unknown Source)
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)
... 1 more
How do I get it to run from cmd (so that it works in a batch file)
** I'm relatively new and am on Win 8 (I am not using Maven) **