Hi,
I have writen a script using the json array library. I have imported the library into my project in eclipse and the programe runs fine through the eclipseterminal but when running it through Command Prompt it calls a ClassNotFoundException.
I assume this is, for some reason, becuase the json library didnt compile. But im not to sure.
This is the error that is displayed when trying to run the programe.
C:\Users\user\Documents\workspace\Primes\bin>java PrimesMain
Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONException
Caused by: java.lang.ClassNotFoundException: org.json.JSONException
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: PrimesMain. Program will exit.
Please can some one help?