应该是oracle的java虚拟机bug,当使用-jar时,-cp和-classpath无效。要设置jar包依赖,需要在导出jar包时,在menifest文件中手动添加依赖项,内容为: Class-Path: 被依赖的jar