java.lang.NoClassDefFoundError: com/google/common 确保导入jar包,且加入Build Path。 尝试使用guava 18.0或更高版本,这将解决问题. guava.jar下载链接 参考1 参考2 参考3 参考4