Pentaho java home windows
WARNING: Using java from path
DEBUG: _PENTAHO_JAVA_HOME=
DEBUG: _PENTAHO_JAVA=java.exe
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
REM *******************************************************************************************
REM This program is free software; you can redistribute it and/or modify it under the
REM terms of the GNU General Public License, version 2 as published by the Free Software
REM Foundation.
REM
REM You should have received a copy of the GNU General Public License along with this
REM program; if not, you can obtain a copy at http://www.gnu.org/licenses/gpl-2.0.html
REM or from the Free Software Foundation, Inc.,
REM 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
REM
REM This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
REM without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
REM See the GNU General Public License for more details.
REM
REM
REM Copyright 2011 — 2018 Hitachi Vantara. All rights reserved.
REM *******************************************************************************************
dp0
cscript promptuser.js //nologo //e:jscript
rem errorlevel 0 means user chose «no»
if %errorlevel%==0 goto quit
echo WScript.Quit(1); > promptuser.js
cd tomcat\bin
set CATALINA_HOME=%
SET BITS=64
SET DI_HOME=»%
set CATALINA_OPTS=-Xms2048m -Xmx6144m -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dfile.encoding=utf8 -DDI_HOME=%DI_HOME%
rem Make sure we set the appropriate variable so Tomcat can start (e.g. JAVA_HOME iff. _PENTAHO_JAVA_HOME points to a JDK)
if not exist «%_PENTAHO_JAVA_HOME%\bin\jdb.exe» goto noJdk
if not exist «%_PENTAHO_JAVA_HOME%\bin\javac.exe» goto noJdk
set JAVA_HOME=%_PENTAHO_JAVA_HOME%
set JRE_HOME=
goto start
:noJdk
rem If no JDK found at %_PENTAHO_JAVA_HOME% unset JAVA_HOME and set JRE_HOME so Tomcat doesn’t misinterpret JAVA_HOME == JDK_HOME
set JAVA_HOME=
set JRE_HOME=%_PENTAHO_JAVA_HOME%
Prepare Environment
Overview
Provides prerequisites for installation.
To prepare the computer on which you plan to install the BA design tool and plugins, complete these tasks.
Install Java JRE or JDK
Make sure that the version of the Java Runtime Environment (JRE) or the Java Development Kit (JDK) that Pentaho needs to run is installed on your system. You do not need to uninstall other versions of Java if you already have them running on your system. These instructions explain how to check for your default version of Java that is running on your computer and where to get the required version if you need one.
- Check the supported technologies list to see which version of the JRE or JDK is needed for the software.
- If you have not done so already, log into the computer on which you plan to install the software. Ensure that you have the appropriate permissions to install software.
- Open a Terminal or a Command Prompt window. Enter this command.
- If the version of Java does not match the version needed to run Pentaho software, check your system to see if there are other versions of Java installed.
- If the version of Java that you need to run Pentaho software is not on your system, download it from the Oracle site and install it.
Set Environment Variables
Set the PENTAHO_JAVA_HOME variable to indicate the path to the Java JRE or JDK that Pentaho should use. If you do not set this variable, then Pentaho will not start correctly.
To set environment variables, you should be logged into an account that has administrator-level privileges. For Linux systems, you must be logged into the root user account.
Set Windows PENTAHO_JAVA_HOME Variable
- From the Start menu, right-click Computer , then select Properties from context menu.
- Click Advanced System Settings . The System Properties window appears.
- In the System Properties window, click the Advanced tab, then click Environment Variables .
- To set the PENTAHO_JAVA_HOME variable do this.
- In the System Variable section, click New .
- In the window that appears, type PENTAHO_JAVA_HOME in the name field.
- In the value field, enter the directory where your Oracle JDK or Oracle JRE is stored. For example your Java JRE is in the Program Files\Java\jre7 directory, type this.
- Click OK .
- Click Apply Changes .
- Log out, then log back in.
- To verify that the variables have been properly set, open a Command window and type this.
Set Linux PENTAHO_JAVA_HOME Variable
- Open a terminal window and log in as root .
- Open the /etc/environment file with a text editor. Note:The vi and gedit text editors are available on most Linux machines. For example, to open the /etc/environment file with gedit, type this.
- Indicate where you installed Java in your /etc/environment file by typing this. Note: Substitute /usr/lib/jvm/java-7-sun with the location of the JRE or JDK you installed on your system.
- Save and close the file.
- Log out, then log back in for the change to take effect.
- Verify that the variables are properly set by opening a Terminal window and typing this.
Recommended articles
Copyright © 2005 — 2020 Hitachi Vantara LLC. All Rights Reserved.
Prepare Environment
Overview
Provides prerequisites for installation.
To prepare the computer on which you plan to install the BA design tool and plugins, complete these tasks.
Install Java JRE or JDK
Make sure that the version of the Java Runtime Environment (JRE) or the Java Development Kit (JDK) that Pentaho needs to run is installed on your system. You do not need to uninstall other versions of Java if you already have them running on your system. These instructions explain how to check for your default version of Java that is running on your computer and where to get the required version if you need one.
- Check the supported technologies list to see which version of the JRE or JDK is needed for the software.
- If you have not done so already, log into the computer on which you plan to install the software. Ensure that you have the appropriate permissions to install software.
- Open a Terminal or a Command Prompt window. Enter this command.
- If the version of Java does not match the version needed to run Pentaho software, check your system to see if there are other versions of Java installed.
- If the version of Java that you need to run Pentaho software is not on your system, download it from the Oracle site and install it.
Set Environment Variables
Set the PENTAHO_JAVA_HOME variable to indicate the path to the Java JRE or JDK that Pentaho should use. If you do not set this variable, then Pentaho will not start correctly.
To set environment variables, you should be logged into an account that has administrator-level privileges. For Linux systems, you must be logged into the root user account.
Set Windows PENTAHO_JAVA_HOME Variable
- From the Start menu, right-click Computer , then select Properties from context menu.
- Click Advanced System Settings . The System Properties window appears.
- In the System Properties window, click the Advanced tab, then click Environment Variables .
- To set the PENTAHO_JAVA_HOME variable do this.
- In the System Variable section, click New .
- In the window that appears, type PENTAHO_JAVA_HOME in the name field.
- In the value field, enter the directory where your Oracle JDK or Oracle JRE is stored. For example your Java JRE is in the Program Files\Java\jre7 directory, type this.
- Click OK .
- Click Apply Changes .
- Log out, then log back in.
- To verify that the variables have been properly set, open a Command window and type this.
Set Linux PENTAHO_JAVA_HOME Variable
- Open a terminal window and log in as root .
- Open the /etc/environment file with a text editor. Note:The vi and gedit text editors are available on most Linux machines. For example, to open the /etc/environment file with gedit, type this.
- Indicate where you installed Java in your /etc/environment file by typing this. Note: Substitute /usr/lib/jvm/java-7-sun with the location of the JRE or JDK you installed on your system.
- Save and close the file.
- Log out, then log back in for the change to take effect.
- Verify that the variables are properly set by opening a Terminal window and typing this.
Recommended articles
Copyright © 2005 — 2020 Hitachi Vantara LLC. All Rights Reserved.