kettle 运行Spoon.bat时,显示错误Could not create the java virtual machine , A fatal exception has occured.Program will exit.
可能原因:jdk版本,运行内存不足
错误原因:并非运行内存不足和jdk版本问题,通过查询SpoonConsole.bat得知
Launching Spoon with console output:
D:\data-integration\data-integration>"D:\data-integration\data-integration\spoon.bat"
DEBUG: Found JAVA two folder up
DEBUG: _PENTAHO_JAVA_HOME=D:\data-integration\data-integration\..\..\java
DEBUG: _PENTAHO_JAVA=D:\data-integration\data-integration\..\..\java\bin\java.exe
发现了两个文件夹,由于自己解压时创建了相同名字文件夹,并且将解压的文件放在了相同名字文件夹里,导致运行spoon.bat时出现Could not create the java virtual machine , A fatal exception has occured.Program will exit.
解决方案:将文件移出到桌面,成功运行
其他错误尝试:当把文件在移出同名文件到D盘,且删除同名文件,在D盘中运行则继续出现错误
错误原因变为
Launching Spoon with console output:
D:\data-integration>"D:\data-integration\spoon.bat"
DEBUG: Found JAVA one folder up
DEBUG: _PENTAHO_JAVA_HOME=D:\data-integration\..\java
DEBUG: _PENTAHO_JAVA=D:\data-integration\..\java\bin\java.exe
D:\data-integration>"D:\data-integration\..\java\bin\java.exe" "-Xms512m" "-Xmx512m" "-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
结论,未能查明具体原因,但将文件放入桌面又能成功运行
来源地址:https://blog.csdn.net/m0_59332278/article/details/130225129