Use library in additional JAR-File
Hello,
I created a java project with eclipse. Within this project I use an additional library. I added it via Build Path > Configure Build Path > Libraries > Add External JARs.
When I start the project from within eclipse, everthing works fine. But now I want to start the application as standalone from the terminal. So I copied all class-File from ~/workspace/project/bin and the JAR-File of the external library "extlib.jar" in one Folder.
Now I change to that directory and start the programm with "java classname". But when the functionality of the external lib is used the first time, I get a "java.lang.NoClassDefFoundError".
How do I tell the java-Interpreter to use the extlib.jar? I already tried "java -cp .:extlib.jar classname" but that did not work. What am i doing wrong?

