The SAS Output Delivery System and reporting techniques

SAS 9.4 unable to load Java Virtual Machine after Windows 10 update

Reply
New Contributor
Posts: 2

SAS 9.4 unable to load Java Virtual Machine after Windows 10 update

I have searched for the errors that SAS reports and the solutions do not seem to resolve the problem.  Most suggest reinstalling Java in subdirectories of the SASHome folder.

 

This error prevents output from simple programs.

Example:

Proc npar1way data=mysas.TxMri wilcoxon anova;

Class PT;

variable Adip;

run;

The output stops at the first analysis.

The log output is:

ERROR: Unable to attach current thread.
ERROR: Unable to load the Java Virtual Machine. Please see the installation instructions or
       system administrator.

 

Changing the code to 

ods graphics off;

Proc npar1way data=mysas.TxMri wilcoxon anova;

Class PT;

variable Adip;

run;

allows the analysis to complete - but without the nice boxes and plots.

The problem is in the link to HTML and Java.  Where could the settings be for this?

Grand Advisor
Posts: 16,411

Re: SAS 9.4 unable to load Java Virtual Machine after Windows 10 update

I thought that wasn't supposed to happen anymore as of 9.4

 

I'm assuming you're referring to these settings that you've verified and are correct:

There are two places that you see the entry for the SAS Private JRE for SAS 9.4: the sassw.config file and the sasv9.cfg file.

New Contributor
Posts: 2

Re: SAS 9.4 unable to load Java Virtual Machine after Windows 10 update

I had checked one, but not sassw.config.  The directories are there.  Do they need to be 8.3?  The file was created before the latest update, so it must have been working.

 

The registry had 8.3 with a value of 2 - I changed it to 0, with reboots, no effect on the SAS Java message at start up. 

sassw.config.

 

[properties]
JREHOME=C:\Program Files\SASHome\SASPrivateJavaRuntimeEnvironment\9.4\jre\bin\java.exe
SASHOME=C:\Program Files\SASHome
PRIVATEJREHOME=C:\Program Files\SASHome\SASPrivateJavaRuntimeEnvironment\9.4\jre\bin\java.exe
DPLMTREGLOC=C:\Program Files\SASHome\deploymntreg
VJRHOME=C:\Program Files\SASHome\SASVersionedJarRepository

 

Checking the Windows Defender settings and turning off didn't change the behaviour.  Making SAS trusted for virus checking didn't change the behaviour.

Respected Advisor
Posts: 2,918

Re: SAS 9.4 unable to load Java Virtual Machine after Windows 10 update

Apparently a new problem has arisen with Windows 10 Creator's Update (released in April 2017), SAS 9.4 and Java. There are several posts on this topic including this one:

 

https://communities.sas.com/t5/SAS-Procedures/windows10-about-SAS9-4-ERROR-The-Java-child-process-te...

 

Post a Question
Discussion Stats
  • 3 replies
  • 322 views
  • 2 likes
  • 3 in conversation