Kettle启动时报错Cannot create java virtual machine & A java exception has occurred

Posted LuckyDan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Kettle启动时报错Cannot create java virtual machine & A java exception has occurred相关的知识,希望对你有一定的参考价值。

开源免费--最喜欢的四个字没有之一

1.官网下载 https://sourceforge.net/projects/pentaho/files/Data%20Integration/

下载完后,解压即可,双击Spoon.bat就可以启动了。

 

2. 配置JVM及内存配置问题

  自行配置 参考: https://www.cnblogs.com/shinge/p/5500002.html

 

3. 如果启动报错“could not create the java virtual machine”,并不是java虚拟机出了问题,需要修改下的spoon.bat里内存配置

         if "%PENTAHO_DI_JAVA_OPTIONS%"=="" set PENTAHO_DI_JAVA_OPTIONS="-Xms2058m" "-Xmx1024m" "-XX:MaxPermSize=256m"

           改为

         if "%PENTAHO_DI_JAVA_OPTIONS%"=="" set PENTAHO_DI_JAVA_OPTIONS="-Xms512m" "-Xmx512m" "-XX:MaxPermSize=256m"

  如果电脑内存小于4G,建议可以再小一些.

4. 如果启动继续报错,"A java exception has occurred" ,可以考虑下载的Kettle版本是否与你JDK匹配,

  例如: pdi-ce-7.1.0.0-12版本对应JDK1.8

  

3.连接数据库找不到驱动问题(mysql为例)

      提示错误[mysql] : org.pentaho.di.core.exception.KettleDatabaseException: 
      Error occured while trying to connect to the database
      Driver class \'org.gjt.mm.mysql.Driver\' could not be found, make sure the \'MySQL\' driver (jar file) is installed.
      org.gjt.mm.mysql.Driver

    解决办法:把mysql-connector-java-5.1.37-bin.jar拷贝到 \\\\pdi-ce-6.0.1.0-386\\data-integration\\lib下面,然后重新启动spoon即可。

以上是关于Kettle启动时报错Cannot create java virtual machine & A java exception has occurred的主要内容,如果未能解决你的问题,请参考以下文章

Maven问题 不重启解决执行clean package 命令时报错——Cannot create resource output directory

springboot启动时报错Cannot determine embedded database driver class for database type NONE解决办法

weblogic 整合cxf 报错:cannot create a secure XmlInputFactory

打开kettle时报错

『ORACLE』修改归档时报错:instance recovery required, cannot set ARCHIVELOG mode

docker启动报错解决及分析(Cannot create container for service *******: cannot mount volume over existing file,