A few days ago I needed to use a extenal library for java, namely the Jakarta Commons math library. Unfortunately there were no istrucytions on how to install it. So I just unpacked it and got a jar file. Took some experimenting but I got eclipse to find the jar file and was able to use it. But if I run my program outside of eclipse I get an error:
Code:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/apache/commons/math/random/RandomDataImpl
So what do I need to do in order to be able to use this library outside of eclipse? Is there a directory where i have to put the libraries i use? Is there some PATH variable i need to set?