java - NoClassDefFoundError when running from the comand line -


i use external library (e.g. google's guava) java program. use eclipse, downloaded guava's jar (and source) , followed adding java library project classpath add eclipse , buildpath of project.

this works fine: can run program eclipse , runnable jar export eclipse, error when try run directly bin/ dir, used before:

exception in thread "main"
java.lang.noclassdeffounderror: com/google/common/base/joiner

what should do?

if you're running class file directly project bin directory may have specify classpath manually: c:> java -classpath c:\java\myclasses;c:\java\otherclasses myclasshere


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -