Spoon.batch file not launching software
Asked Answered
D

3

5

I downloaded Pentaho Data Integration (or Kettle) to my Windows 10 machine from the sourceforge link on the Pentaho Community website. After unzipping the files I followed the instructions on the community website for launching the software, quoted here:

After unzipping the downloaded file, you can launch Spoon by navigating to the folder /data-integration and double clicking Spoon.bat

My OS doesn't recognize any .bat file in the specified folder, but a Windows Batch File of the same name is in the folder, and it has the same size (4 KB) which the Spoon.bat file is meant to have, so I believe it is the same file referred to in the instructions.

Opening this file seems to execute the batch instruction in a command prompt window which immediatey disappears. No other effect is observed; in particular, no software is launched.

I googled and found that a common cause for issues of this kind is not having the a 64-bit version of java installed. So I installed a 64-bit version of the java runtime environment from this link and followed the approach described in this forum post for putting links to the java executables in the path that pentaho expects.

This had no effect, even after I restarted my computer.

Is there a simpler way to get this software working that I don't know about, or a step that I've missed here? Any help would be greatly appreciated!

Darryl answered 3/6, 2017 at 2:27 Comment(0)
D
6

The thing that got it working for me was to follow the advice in this post which specifies modifying the Spoon batch file by replacing -Xmx2048m with -Xmx1024m in the string

if: "%PENTAHO_DI_JAVA_OPTIONS%"=="" set PENTAHO_DI_JAVA_OPTIONS="-Xms1024m" "-Xmx2048m" "-XX:MaxPermSize=256m"

(because 32-bit java cannot handle the 2048m).

Darryl answered 3/6, 2017 at 3:37 Comment(2)
This is a workaround, not a solution. Spoon.bat and set-pentaho-env.bat go through a whole routine looking for a usable Java version. Somehow it's finding the 32-bit before the 64-bit version. Running the batch file from a command line window should show you how it does that.Sprightly
Yeah, I definitely agree this is just a workaround. I was disappointed to see how difficult it was to just get the software setup and start working with it. I will probably not spend more time trying to find a solution as I do have the workaround and have spent so much time already. Hopefully the next version will have these issues sorted out.Darryl
D
1

It's been four years but I'm commenting in case someone else finds this when looking for the answer: I solved the issue by downloading the JAVA 64bit > installing in Program Files > DELETING the 32bit in Program Files(x86) > and then replacing the Program Files (x86) with the 64bit.

Dolomites answered 18/10, 2021 at 14:56 Comment(0)
R
0

Does your batch-file contain a space in the name? For me that was causing a launch problem.

Radbun answered 6/6, 2017 at 11:20 Comment(1)
Hmmm, that is strange that yours did, but no, mine didn't. Did you download from the same link I posted above?Darryl

© 2022 - 2024 — McMap. All rights reserved.