Reputation: 51
After extracting the Pentaho zip file I downloaded. I set my class path to JDK 1.7.0. But, upon running the Spoon.bat file I keep getting the statement: "Unable to launch your Java Virtual Machine (JVM)." How do I resolve this problem ?
NB: I have configured JAVA_HOME, JRE_HOME as stated by similar previously answered questions.
Upvotes: 3
Views: 10334
Reputation: 2209
In my case (for PDI 9.2.x), installing an Oracle JDK 8 solved the issue (no need to set the Java home folder explicitly)
Upvotes: 0
Reputation: 6356
Note that Pentaho7 requires java 8.
In any case, Set the PENTAHO_JAVA_HOME=dir, where dir is the directory that contains the /bin/java.exe executable.
Alternative:
The spoon.bat
[resp spoon.sh] runs first the set-pentaho-env.bat
to find a suitable java. Edit this file to know in which order it searches for it. So do like me, when nobody looks at you, edit this file manually, and set _PENTAHO_JAVA_HOME
and _PENTAHO_JAVA
manually.
To check: In a command line shell, cd
to your PDI install directory and type spoon.bat
. It writes something like start "Spoon" "**some\directory**\javaw.exe" more stuff
. Check that you can type **some\directory**\javaw.exe -version
in your shell.
If not: in the same directory, type set-pentaho-env.bat
. It writes down the PENTAHO_JAVA and PENATHO_JAVA_HOME thAt spoon will use. Edit that file until %PENTAHO_JAVA%\java.exe -version
and %PENTAHO_JAVA_HOME%\java.exe -version
answers the appropriate version.
Upvotes: 4