I recently installed SAS 9.4 on windows10 (1703) several machines for my computer. Installation display is successful. The error in the log that I get when I open SAS is ERROR: The Java child process terminated unexpectedly: status -1073741502. ERROR: Failed to attach to Java during SAS startup. I have tried to Reinstalling to see if it would repair. also use Java Runtime Environment hotfix . But all were failed. I have no idea. Please help Thank you.
Editor's update: this is a known issue with Windows 10 Creators Update and SAS 9.4m3 and later. See: SAS Note 60323: Java errors due to the Windows 10 Creators Update might occur when you invoke SAS and the solution in this topic.
This is a known problem that was introduced with the Microsoft Windows 10 "Creators" update. SAS has issued a fix to solve the issue for SAS 9.4 customers. Microsoft may also address the problem in a future update. The SAS hot fix is designed to solve the issue independent of any future Windows fix.
Problem Details
SAS Note 60323: Java errors due to the Windows 10 Creators Update might occur when you invoke SAS
Invoking SAS® 9.4 M3 or later on a Windows 10 machine might result in Java errors. The problem is caused by the Windows 10 Creator Update and can also affect SAS client applications such as SAS® Enterprise Guide®. You might see errors such as SAS Enterprise Guide has stopped working. The issue can be intermittent or consistent.
Here are the error messages displayed in the SAS log window when SAS is invoked:
ERROR: The Java child process terminated unexpectedly: status -1073741502. ERROR: Failed to attach to Java during SAS startup.
Circumstances under Which the Issue Is Known to Occur
Hot Fix Details
SAS has issued a hot fix for this problem. The SAS Note provides details and links to the fix on the "Hot Fix" tab.
Hot fix direct download links - per SAS version:
The SASHFADD tool will also pick these up.
I am also having JAVA problems win 10 x64 SAS 9.4 TS1M3
After using for a while after first install, ODS and Java fail.
When I restart SAS it says:
ERROR: The Java child process terminated unexpectedly: status -1073741502.
ERROR: Failed to attach to Java during SAS startup.
I once was able to fix it by installing the latest hotfix that includes a java update. But it returned.
I then tried the workaround solution you post here. Copied here:
This is so frustrating, mine was randomly having issues with Java but the problem seemed to get worse and I get the same message.
ERROR: The Java child process terminated unexpectedly: status -1073741502.
ERROR: Failed to attach to Java during SAS startup.
I tried following all the steps described but nothing seems to work temporary or permanently. I even uninstall everything following the procedure and reinstall but the problem still persists.
@JWolf - Are you on SAS 9.4M3 or later and have you applied the hot fix mentioned in this post?
I'm running 9.4M3, I tried to install the hot fix on both machines but it didn't work however, I installed the windows update and everything is working fine again on one of the machines I'm going to try doing the same thing on the other one with the problem and if that doesn't solve the problem I'll post it.
Does the info in the following thread address your problem?: https://communities.sas.com/t5/SAS-Procedures/ERROR-The-Java-proxy-is-not-responding/td-p/149423
Art, CEO, AnalystFinder.com
After recieving this error and reading through the threads you just need to add sas.exe as an exception in your windows defender. Close out of SAS and open it back up again and your error should go away.
That is what worked for me anyway. 🙂
I encountered this same error code after the most recent Windows update (sigh). I noticed the problem disappeared if I turned off real time protection in Windows Defender, which apparently does not approve of SAS accessing JAVA. So you might try that.
Adding sas.exe to the Windows Defender Antivirus exclusions list appears to have resolved the issue entirely.
Hope this helps.
Hi dylsmith - since adding sas.exe to the Windows Defender exclusions list several days ago, have you seen the issue reoccur?
Thanks!
Thank you for providing that additional information! If you are willing to work on troubleshooting the issue with SAS Technical Support, please open up a track by sending an email to support@sas.com with a screen shot of the SAS Log showing the error message.
SAS is continuing to work on identifying the cause of this behavior and a way to consistently/permanently resolve it. I will update this thread once I have more information to share.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.