Beginning in SAS Enterprise Miner 15.3, an underlying change occurred that affects the generation of the Java Score Code from the Score node. In SAS 9.4M8 (TS1M8), which is the underlying SAS version for SAS Enterprise Miner 15.3, the private Java Runtime Environment (JRE) that is shipped is Java 11. In previous versions, the SAS private JRE is Java 8. This update affects the Java Score Code generation because the required Java Runtime JAR file (rt.jar) does not exist anymore.
Let's assume your project has a standard flow within a diagram as seen below:
If the JAR file is not updated, the results do not return two of the four expected Java score files even though the node indicates that it ran successfully:
In the log file, these error messages occur:
To be able to generate Java Score code, you must create a new Java JAR file and modify a SAS Runtime environment variable (DTJ_CLASSPATH), which is defined in the SAS configuration file.
Note: Before completing these steps to address the problem, back up the SAS configuration file (sasv9.cfg).
Instructions for Microsoft Windows (x64)
To create the Java JAR file javabase.jar on a Windows x64 machine, complete these steps:
To add the Java javabase.jar file to your SAS directory and update the SAS configuration file on a Windows system, complete these steps:
-SET DTJ_CLASSPATH "C:\Program Files\SASHome\SASFoundation\9.4\dmine\sasmisc\dtj.jar;C:\Program Files\SASHome\SASFoundation\9.4\dmine\sasmisc\javabase.jar"
Instructions for Linux (x64)
To create the Java javabase.jar file on a Linux x64 machine, complete these steps:
To add the Java javabase.jar file to the SAS directory and update the SAS configuration file on a Linux system, complete these steps:
Restart SAS Enterprise Miner and rerun the flow. If you encounter any issues, contact SAS Technical Support.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning and boost your career prospects.