SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 12279: "Error: Recommended version of Java not found" error message when installing SAS® 9.1.3 products

DetailsAboutRate It

When you install various SAS 9.1.3 products, the following error messages might appear, depending on the release of Java on your PC:

Error: Recommended version of JDK not found. Error: Recommended version of Java not found.

If these messages appear, check the following:

  1. Do you have the following directory C:\j2sdk1.4.2_05?

    If you do not have this directory, reinstall the SDK from the following location:

    http://support.sas.com/documentation/configuration/thirdpartysupport/index.html

    Note: Use the above link to verify what you need. The version might be different, depending on the message displayed, the release of SAS, and the platform your installing on.

  2. Click Start>Run and type cmd. At the command prompt change your directory to the SAS Private JRE directory and then type java -version:
       cd "C:\Program Files\SAS\Shared Files\JRE\1.4.1\bin\" (enter)
       java -version (enter)
    

    If you are running SAS 9.1.3 Rev: SE20 or higher, you will be using the SAS Private JRE 1.4.2_09 version. Note: If SAS 8.2 is installed on your PC first, the directory for Shared Files is found in C:\Program Files\SAS Institute\Shared Files.

    If the Private SAS JRE is not installed, install it from the SAS Setup CD or from the Disk1 directory in your SAS Software Depot:

          \srw\bundles\sasjre\jresetup.exe.
    
  3. Run the following command from a command prompt:
          java -version
    
    This command returns the system Java version. If the java -version fails to find the necessary JRE, reinstall it.
  4. Verify that the JDK has been installed correctly. To do this, look in C:\Program Files\Java\j2re1.4.2_05 (or the installed version). If this directory does not exist, reinstall the JDK.
  5. Go to Start>Settings>Control Panel>Add/Remove Programs and check for the JDK entry. If this is installed, an entry exists for JDK 1.4.2_05 and one for JRE 1.4.2_05 (or the version you have installed). This lets you know that it is installed correctly. If both entries are not listed, reinstall the the necessary JDK from the following location:

    http://support.sas.com/documentation/configuration/thirdpartysupport/index.html

If Java error messages continue to appear after you check steps 1-5, perform the following:

  1. Uninstall all versions of Java and reboot your operating system.
  2. Reinstall the necessary SAS Private JRE, using one of the following steps:
    • Manually run the System Requirements Wizard from the SAS Setup

      * Click on Start>Run> browse to the CD, and run: srw\bundles\sasjre\jresetup.exe.

    • Run the System Requirements Wizard from the End User Steps.

      * Insert the SAS Setup CD, and run the System Requirements Wizard

    • Run the Java Runtime Environment install from our Third Party Download site (SAS 9.1.3 Service Pack 4 only):

      http://support.sas.com/documentation/configuration/thirdpartysupport/index.html

    • Place the Java Runtime Environment - Volume 1 CD in your CD-ROM drive (SAS 9.1.3 Service Pack 4 only).
  3. Reinstall the Java SDK 1.4.2_05 (or the necessary version) from from our Third Party Download site:

    http://support.sas.com/documentation/configuration/thirdpartysupport/index.html

  4. Check for a conflicting JAVA_HOME registry setting on Windows platforms.

Note: During the install of a SAS product, if a specific version of JDK is requested, install that version.

Note: If either step 2 or 3 returns a "%1 not valid Win32" error, there is a problem with that JRE. To fix this issue, uninstall the JRE (System or Private) from Start>Control Panel>Add/Remove Programs. Then reboot your system and re-install the JRE in question.

Note: The SDK and the JDK terms are synonymous and refer to the same concept: a Java development kit.

Note: JRE means Java Runtime Environment. The SAS Private JRE is 1.4.2_05.

Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASMicrosoft Windows 2000 Server9.1 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M0
Microsoft Windows Server 2003 Standard Edition9.1 TS1M0
Microsoft Windows NT Workstation9.1 TS1M0
Microsoft Windows XP Professional9.1 TS1M0
Microsoft Windows 2000 Advanced Server9.1 TS1M0
Microsoft Windows 2000 Datacenter Server9.1 TS1M0
Microsoft Windows 2000 Professional9.1 TS1M0
* 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.