java 无法在 Pentaho 数据集成 (Kettle) 中运行勺子.bat 或任何其他批处理文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15865335/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Not able to run spoon.bat or any other batch file in Pentaho Data Integration (Kettle)
提问by utsavanand
Tried pdi-ce-4.1.0-stable and pdi-ce-4.2.0-stable
试过 pdi-ce-4.1.0-stable 和 pdi-ce-4.2.0-stable
My Machine - Windows 7 64 bit
我的机器 - Windows 7 64 位
When I run Spoon.bat cmd line window appears and disappears and then nothing happens.
当我运行 Spoon.bat cmd 行窗口时出现并消失,然后什么也没有发生。
When I tried to run it from command line, I get
当我尝试从命令行运行它时,我得到
DEBUG: Using JAVA_HOME DEBUG: _PENTAHO_JAVA_HOME=C:\Program Files\Java\jdk1.5.0_22 DEBUG: _PENTAHO_JAVA=C:\Program Files\Java\jdk1.5.0_22\bin\javaw
C:\pentaho\data-integration>start "Spoon" "C:\Program Files\Java\jdk1.5.0_22\bin \javaw" "-Xmx512m" "-XX:MaxPermSize=256m" "-Djava.library.path=libswt\win64" "-D KETTLE_HOME=" "-DKETTLE_REPOSITORY=" "-DKETTLE_USER=" "-DKETTLE_PASSWORD=" "-DKE TTLE_PLUGIN_PACKAGES=" "-DKETTLE_LOG_SIZE_LIMIT=" -jar launcher\launcher.jar -li b ..\libswt\win64
调试:使用 JAVA_HOME 调试:_PENTAHO_JAVA_HOME=C:\Program Files\Java\jdk1.5.0_22 调试:_PENTAHO_JAVA=C:\Program Files\Java\jdk1.5.0_22\bin\javaw
C:\pentaho\data-integration>start "Spoon" "C:\Program Files\Java\jdk1.5.0_22\bin\javaw" "-Xmx512m" "-XX:MaxPermSize=256m" "-Djava.library.path =libswt\win64" "-D KETTLE_HOME=""-DKETTLE_REPOSITORY=""-DKETTLE_USER=""-DKETTLE_PASSWORD=""-DKE TTLE_PLUGIN_PACKAGES=""-DKETTLE_LOG_SIZE_LIMIT="-jar launcher\launcher.jar\-li b. libswt\win64
But then again the PDI GUI doesn't open. I have run the same on another 32 bit machine and it runs perfectly.
但话又说回来,PDI GUI 没有打开。我在另一台 32 位机器上运行了同样的程序,它运行完美。
采纳答案by Helping Hand..
Their are few things which are not supportable by jdk which are 1.6 or lower then that, try to download jsk 1.7 and configure it may be your problem will solved, because i faced few errors in the past which are because of lower version of jdk.
他们的一些东西是jdk不支持的,1.6或更低版本,尝试下载jsk 1.7并配置它可能会解决你的问题,因为我过去遇到过一些错误,这是因为jdk版本较低。
回答by SS781
There seem to be a few folders missing when downloading community edition vs installing EE. Try to install both, and take the "ui" folder from EE and copy it to the CE folder. Running spoon.bat should work now. This worked for me, hope it helps.
下载社区版与安装 EE 时似乎缺少一些文件夹。尝试安装两者,然后从 EE 中获取“ui”文件夹并将其复制到 CE 文件夹。运行spoon.bat 现在应该可以工作了。这对我有用,希望它有所帮助。
回答by MRJ
I had the same problem yesterday with the same message after updating Java 7 Update 55. Kettle: pdi-ce-5.0.1.A-stable Windows 7 32 bits
我昨天在更新 Java 7 Update 55 后遇到了同样的问题,同样的消息。Kettle:pdi-ce-5.0.1.A-stable Windows 7 32 bits
Solved: I set the PENTAHO_JAVA_HOME variable to jr6 and now the spoon.bat opens.
已解决:我将 PENTAHO_JAVA_HOME 变量设置为 jr6,现在spoon.bat 打开了。
回答by DanGalizi
I know it is an old commend, but maybe this can help someone. you just need to replace all "JAVAW" to "JAVA", inside the .bat file. It worked for me. tks.
我知道这是一个古老的推荐,但也许这可以帮助某人。您只需要将 .bat 文件中的所有“JAVAW”替换为“JAVA”。它对我有用。tks。
回答by Prakhar_G
Thanks for posting the problem and for all the hints above. I was using latest version of spoon with an older version of Java. when I ran spoon.bat in command line without the start.. it told me that the class file major.minor version is not supported. I installed latest version of Java (X64) and pointed my JAVA_HOME folder to the new folder and here you go... In my case the folder path was "C:\Program Files\Java\jre1.8.0_111". I copied UI folder too from EE to CE. If you are using latest version of spoon then use the latest version of Java. I needed to add JAVA_HOME or JAVA_JRE variable pointing to the java's latest version folder on my system.
感谢您发布问题和上述所有提示。我正在使用最新版本的勺子和旧版本的 Java。当我在没有开始的情况下在命令行中运行勺子.bat时..它告诉我不支持类文件major.minor版本。我安装了最新版本的 Java (X64) 并将我的 JAVA_HOME 文件夹指向新文件夹,然后就可以了……在我的例子中,文件夹路径是“C:\Program Files\Java\jre1.8.0_111”。我也将 UI 文件夹从 EE 复制到 CE。如果您使用的是最新版本的勺子,请使用最新版本的 Java。我需要在我的系统上添加指向 java 最新版本文件夹的 JAVA_HOME 或 JAVA_JRE 变量。