背景:同事把kettle工具刚刚倒过来,打开spoon.bat报错,显示Error: Could not create the Java Virtual Machine.
发现问题后运行SpoonDebug.bat,寻找具体问题,输出结果:
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Invalid maximum heap size: -Xmx4096m
The specified size exceeds the maximum representable size.
结果中发现JVM的内存空间设置问题,之前的-Xms1024m;-Xmx4096m;-XX:MaxPermSize=6144m,后查阅相关资料,修改编辑打开spoon.bat,找到jvm设置空间的地方将其调整为if "%PENTAHO_DI_JAVA_OPTIONS%"=="" set PENTAHO_DI_JAVA_OPTIONS="-Xms512m" "-Xmx512m" "-XX:MaxPermSize=256m"。之后运行内存问题得以解决,却出现新问题,直接上debug输出结果:
java.lang.UnsupportedClassVersionError: org/pentaho/commons/launcher/Launcher : Unsupported major.minor version 52.0
at java