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
Post a Comment