This document explains how to configure SAS 9.3 applications to run with a Java Runtime Environment (JRE) or a Java Development Kit (JDK) that are different from the JRE or JDK that you use during the initial installation and configuration process.
Minimum JRE and JDK version requirements for use with SAS 9.3 are available in the following locations:
Notes:
SAS 9.3 uses TrueType fonts to provide quality printing and font display across multiple platforms. During the installation and configuration of SAS 9.3, some of these TrueType fonts are installed to the required Java Runtime Environment. When SAS 9.3 is configured to use an alternate JRE, you must copy or move these TrueType fonts to the new JRE.
To move the TrueType fonts to the alternate JRE:
SAS Foundation uses Java Native Libraries. The paths to these native libraries are contained within the JRE. The library path that is used by SAS Foundation software is set in the sasenv file, which is located in the SAS 9.3 installation directory.
Under UNIX, you must modify your JAVA_HOME envioronment variable to contain the path to the alternate JRE. JAVA_HOME is also set in the sasenv file, as shown in the following example:
Modify JAVA_HOME so that it points to the alternate JRE, which contains the native libraries. Then the LIBPATH variable will pick up the correct path from JAVA_HOME.
Under Windows, you add the path to the alternate JRE in the SAS system option, JREOPTIONS=, which is located in the configuration file !SASROOT\nls\language\sasv9.cfg. This SAS option includes all of the Java options that are used when SAS invokes a Java Virtual Machine (JVM). The -Dsas.jre.libjvm property identifies the shared library for the JVM to use. The following example shows the default JREOPTIONS= for a Windows environment.
Note: All of the JREOPTIONS= parameters must be specified on a single line. However, for readability, this example shows the parameters on multiple lines.
To change SAS Foundation so that it uses an alternate JRE (for example, Java 7, Update 15), modify the -Dsas.jre.libjvm property (highlighted in the example above), as follows:
Many SAS applications and rich clients are invoked through the SAS Application Launcher. By default, the JRE location for the SAS Application Launcher is specified in the JREHOME variable within the sassw.config file, which is located in a directory path similar to C:\Program Files\SASHome\sassw.config. You can reconfigure a large percentage of SAS Java applications to use an alternate JRE just by editing this file. You need to modify the JREHOME variable in the following section of the file:
To modify this file to use an alternate JRE (for example, Java 6, Update 29), change the JREHOME= variable, as follows:
For SAS 9.3 client applications that are based on the Eclipse Rich-Client Platform, you can reconfigure the applications to use an alternate JRE by editing an .ini file. This file is located in the same directory as the application. For example, to update the JRE in SAS® Data Integration Studio (distudio.exe), edit the distudio.ini file that resides in the same directory as distudio.exe. In the .ini file, change the -vm argument to the path for the alternate JRE. In this example, the path points to JRE 6, Update 29.
Note: The -vm parameter and the path must be on separate lines, and they must precede any -vmargs entries. For information about the .ini structure, see the Eclipsepedia Eclipse.ini Web page. For information about Eclipse runtime options, see The Eclipse runtime options Web page.
SAS remote Services requires either a JRE or a JDK. These servers can be reconfigured to use an alternate JRE or JDK, as shown in the following examples:
Under UNIX, the level_env.sh script file that resides in $SAS-configuration-directory/Lev1/ contains two variables: JAVA_JRE_COMMAND= and JDK_HOME. Set these variables to the paths for your alternate JRE or JDK, as shown in the following example:
Under Windows, the level_env.bat file that resides in $SAS-configuration-directory\Lev1\ contains two variables: JAVA_JRE_COMMAND and JDK_HOME. Set these variables to the paths for your alternate JRE or alternate JDK, as shown in this example:
SAS 9.3 business intelligence (BI) and enterprise BI solutions require the installation of both a Java application server and a Java Development Kit (JDK). SAS does not ship JDKs. Therefore, you must download and install the required JDK before you install SAS. After you install the JDK, you need to reconfigure SAS and the application server to use the supplied JDK. The following sections provide instructions to modify the JDK version for particular Java application servers. Instructions are provided for application servers under both UNIX and Windows.
Under UNIX, JBoss configurations save the location of the required JDK in two script files:
Set the JAVA_HOME and the JDK_HOME variables to the path of the required JDK, as shown in these examples:
In the SASServer1.sh script:
In the level_env.sh script:
SAS uses Tanuki Software's Java Service Wrapper to install the JBoss application server as a Windows service. This wrapper uses a configuration file named wrapper.conf to identify the location of the Java executable and the location of the tools.jar file for the JDK. If JBoss is configured to run as a service, set the path to the alternate JDK in $JBoss-home-directory\server\SASServer1\wrapper.conf, as shown in these examples. The tools.jar file is located in C:\Program Files\Java\jdk-installed-version\lib.
If your site does not have JBoss configured to run as a service, then you must edit the JBoss configuration. Under Windows, JBoss configurations save the location of the alternate JDK in two batch files:
Set the JAVA_HOME and JDK_HOME variables (in their respective files) to the path of your alternate JDK, as shown in this example:
Under UNIX, WebLogic configurations save the location of the required JDK in two script files:
In both of these files, set the JAVA_HOME variable to the path of the alternate JDK, as follows:
Under Windows, WebLogic configurations save the location of the required JDK in two files:
In both of these files, set the JAVA_HOME variable to the path of your alternate JDK:
Note: The WebLogic Node Manager can be installed to run as a service under Windows. The service is configured to use the JDK that WebLogic is configured with at the time of installation. If you configure WebLogic to run with an alternate JDK and you are running WebLogic Node Manager as a service, then you must re-install the service with the following configuration changes:
This command installs the WebLogic Node Manager Service using the JDK that is specified in $SAS-configuration-directory\Lev1\Web\SASDomain\bin\comEnvSAS.cmd and in $SAS-configuration-diretory\Lev1\Web\SASDomain\bin\setDomainEnv.cmd.
WebSphere configurations are installed with the required JDK.