Usage Note 14569: The DTJ_CLASSPATH environment variable must be set correctly in order for SASĀ® Enterprise Miner(tm) to create Java scoring code
SAS Enterprise Miner 5 and later produce Java translations of some of the generated DATA step scoring code.
To produce valid Java code, a system environment variable must be defined for the SAS Enterprise Miner workspace server.
The DTJ_CLASSPATH environment variable must contain absolute paths for a SAS Enterprise Miner-distributed file, "dtj.jar", and for the Java runtime library. On most systems, the java runtime library is named "rt.jar" but, on AIX systems, it is named "core.jar". These files are distributed as part of SAS® Foundation Services and of SAS Enterprise Miner.
To produce valid Java scoring code, modify the SAS configuration file for the SAS Enterprise Miner workspace server, to create and set the required environment variable.
Windows Systems
First locate and make a backup copy of the SAS workspace server primary configuration file.
In a default SAS 9.1.3 installation, the configuration file is:
C:\Program Files\SAS\SAS 9.1\nls\en\SASV9.CFG
In a default SAS 9.2 installation, the configuration file is:
C:\Program Files\SAS\SASFoundation\9.2\nls\en\SASV9.cfg
The paths used in this example are for a default installation. Your paths might vary depending on how SAS was installed.
Edit the primary configuration file for the workspace server. In a default installation on Windows, the new SET statement line might look something like this:
SAS Enterprise Miner 5.x
-SET DTJ_CLASSPATH "!SASROOT\dmine\sasmisc\dtj.jar;!SASROOT\..\Shared Files\JRE\1.4.1\lib\rt.jar"
SAS Enterprise Miner 6.x
-SET DTJ_CLASSPATH "!SASROOT\dmine\sasmisc\dtj.jar;C:\Program Files\Java\jre1.5.0_15\lib\rt.jar"
- Save and close the configuration file.
Unix systems
A configuration file named sasv9_local.cfg is created in the !SASROOT directory to store user-specified settings. Settings in this file will remain in place during upgrades to the SAS installation, and will override default option values when the same options are found in both the sasv9_local.cfg and the sasv9.cfg files. Locate and make a backup copy of the sasv9_local.cfg file for the SAS Workspace server. The paths used in this example are for a default installation. Your paths might vary depending on how SAS was installed.
Edit the sasv9_local.cfg file for the workspace server.
In a default installation on Unix (non-AIX systems), the new SET statement
line might look something like this:
SAS Enterprise Miner 5.x
-SET DTJ_CLASSPATH "!SASROOT/misc/dmine/dtj.jar:!SASROOT/sasjre/1.4.1/lib/rt.jar"
SAS Enterprise Miner 6.x
-SET DTJ_CLASSPATH "!SASROOT/misc/dmine/dtj.jar:!SASHOME/jre1.5.0_12/lib/rt.jar"
In a default installation on AIX systems, the new SET statement line might look something like this:
SAS Enterprise Miner 5.x
-SET DTJ_CLASSPATH "!SASROOT/misc/dmine/dtj.jar:!SASROOT/sasjre/1.4.1/lib/core.jar:"
SAS Enterprise Miner 6.x
-SET DTJ_CLASSPATH "!SASROOT/misc/dmine/dtj.jar:/!SASHOME/jre1.5_SR5/jre/lib/vm.jar:SASHOME/jre1.5_SR5/jre/lib/core.jar:"
Make sure that you include the colon (:) at the end. Your path for the rt.jar, vm.jar, or core.jar file might vary due to the java version that is installed.
- Save and close the configuration file.
Operating System and Release Information
| SAS System | SAS Enterprise Miner | 64-bit Enabled AIX | 5.1 | | 9.1 TS1M3 SP2 | |
| 64-bit Enabled Solaris | 5.1 | | 9.1 TS1M3 SP2 | |
| HP-UX IPF | 5.1 | | 9.1 TS1M3 SP2 | |
| Windows Vista | 5.1 | | 9.1 TS1M3 SP2 | |
| Microsoft Windows XP Professional | 5.1 | | 9.1 TS1M3 SP2 | |
| Microsoft Windows Server 2003 Standard Edition | 5.1 | | 9.1 TS1M3 SP2 | |
| Microsoft Windows Server 2003 Enterprise Edition | 5.1 | | 9.1 TS1M3 SP2 | |
| Microsoft Windows 2000 Datacenter Server | 5.1 | | 9.1 TS1M3 SP2 | |
| Microsoft Windows 2000 Server | 5.1 | | 9.1 TS1M3 SP2 | |
| Microsoft Windows 2000 Professional | 5.1 | | 9.1 TS1M3 SP2 | |
| Microsoft Windows NT Workstation | 5.1 | | 9.1 TS1M3 SP2 | |
| Microsoft Windows Server 2003 Datacenter Edition | 5.1 | | 9.1 TS1M3 SP2 | |
| Microsoft Windows 2000 Advanced Server | 5.1 | | 9.1 TS1M3 SP2 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Date Modified: | 2008-01-10 16:28:56 |
| Date Created: | 2005-02-11 13:41:27 |