Kettle7.1在window启动报错
实验环境:
window10 x64
kettle7.1 pdi-ce-7.1.0.0-12.zip
错误现象:
a java exception has occurred
问题解决:
运行调试工具
data-integration\SpoonDebug.bat //调试错误的,根据错误明确知道为何启动不了,Y--Y---Y ,在根目录下生成SpoonDebug.txt文件
根据调试日志
DEBUG: Using JAVA_HOME DEBUG: _PENTAHO_JAVA_HOME=C:\Java\jdk1.7.0_80 DEBUG: _PENTAHO_JAVA=C:\Java\jdk1.7.0_80\bin\java.exe D:\ETL-Kettle\data-integration>"C:\Java\jdk1.7.0_80\bin\java.exe" "-Xms1024m" "-Xmx2048m" "-XX:MaxPermSize=256m" "-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2" "-Djava.library.path=libswt\win64" "-DKETTLE_HOME=" "-DKETTLE_REPOSITORY=" "-DKETTLE_USER=" "-DKETTLE_PASSWORD=" "-DKETTLE_PLUGIN_PACKAGES=" "-DKETTLE_LOG_SIZE_LIMIT=" "-DKETTLE_JNDI_ROOT=" -jar launcher\pentaho-application-launcher-7.1.0.0-12.jar -lib ..\libswt\win64 /level:Debug java.lang.UnsupportedClassVersionError: org/pentaho/commons/launcher/Launcher : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482) Exception in thread "main"
根据查询得之,
Unsupported major.minor version 52.0,是java-jdk1.8的东西,因此安装jdk1.8在启动就好了!