BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Phil416
Calcite | Level 5

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?

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

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...

 

View solution in original post

3 REPLIES 3
Reeza
Super User

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.

Phil416
Calcite | Level 5

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.

SASKiwi
PROC Star

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...

 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 15663 views
  • 2 likes
  • 3 in conversation