本机已安装JRE 1.4.2_19-b04,通过独立运行的方式启动Apache FtpServer 1.0.0时报错。 |
D:\apache-ftpserver-1.0.0>bin\ftpd.bat res\conf\ftpd-typical.xml Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/ftpserver/main/CommandLine (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) |
出现以上错误,请检查MANIFEST.MF的JDK/JRE的版本信息。 |
ftpserver-1.0.0.zip \apache-ftpserver-1.0.0\common\lib\ftpserver-core-1.0.0.jar \META-INF\MANIFEST.MF Build-Jdk: 1.6.0_10 |
原文地址:https://www.cnblogs.com/rms365/p/10961632.html