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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -