How do I run a program in Java, with several referenced libraries, .jar files, from a command line? I have put all my .jars in /lib folder, which is in the root folder of my project, and added those .jars to the build path. So my project now looks something like this:
Project:
-->/src/Entry.java, ... (all them .java files)
-->/bin/Entry.class, ... (all them other .class files)
-->/lib/commons-codec-1.10./(all them .jars)*
Now when i try to run the program from the cmd: I locate myself within the /bin folder and execute java Entry, but I get NoClassDefFound exception
How should I run this?