Jar不能在Unix服务器上运行

时间:2015-03-30 05:59:07

标签: java

我在unix服务器上运行jar并获得以下异常。它早先工作了

Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.log4j.Logger              
                    at bo.ExecuteScheduler.<clinit>(ExecuteScheduler.java:25)
                    at java.lang.J9VMInternals.initializeImpl(Native Method)
                    at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
                    at java.lang.Class.forNameImpl(Native Method)
                    at java.lang.Class.forName(Class.java:172)
                    at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)
            Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
                    at java.net.URLClassLoader.findClass(URLClassLoader.java:423)
                    at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
                    at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
                    ... 6 more

0 个答案:

没有答案