查看jar包内容 查看jar包内容的基本命令: jar tf jar-file 参数解释: The t option indicates that you want to view the table of contents of the JAR file. The f option indicates that the JAR file whose contents are to be viewed is specified on the command line. The jar-file
这个是之前往was上发应用的时候踩的一个坑,当时我们知道was的jdk版本是1.6,然后我们是用1.7的jdk,编译版本选的是1.6,然后放上去不对,我们以为是编译的问题,然后又下载了1.6的jdk,再次编译,还是不对,主要是当时对was不熟悉,不知道在哪里看运行日志,然后我们深入服务器上去找日志,发现报错是class的编译版本过高(JVMCFRE003 bad major version),然后看报错的类,发现是jar包里面的一个类,我们就把jar包换成了低版本的,然后再发布就可以运行了.