I have tried everything above, but not working. I have disabled defender's real time protection and added the SASHome folder to exclusion list, also added sas.exe to defender firewall list, but the problem still there.
For everyone encountering this error: SAS Technical Support continues to work with Microsoft on identifying the root cause of this issue however we don't have a consistently valid workaround to share yet.
Here is a workaround that can mitigate the behavior on some machines:
1) Browse to your the following location C:\Program Files\SASHome\SASFoundation\9.4\core\sasext
2) Right click on tkelsproxy.exe and select properties
3) Go to the Compatibility Tab and tick the Run this Program in compatibility mode for: Windows 8. Then hit OK
4) Start SAS 9.4 (English). You will likely see the Java errors on the first launch, but if this is the case, close SAS and reopen it. Often the 2nd launched session does not have the Java errors. If you get a session without Java errors at the top of the log, you can use this session to execute procedures that use Java, like proc reg or surveymeans. Also if you restart your machine, you will likely have to launch a few SAS sessions before you will get one without the error.
It's also important to understand that you can use the SAS session with the Java errors in the log without issue unless you need to execute code that uses Java (anything that generates ODS output for example).
For the users who have found that turning off Windows Defender Real-Time Protection resolves the issue for you:
Many users are reporting that the issue is intermittent. It's possible that turning off this protection is not resolving the issue, rather it's the fact that you are opening a 2nd session (after you add the exclusion). Next time you get the error, please try closing and re-opening SAS as that may work without disabling any security software.
For me, after following the instruction to modify the tkelsproxy.exe as instructed. It still did not work. I had to uninstall and install Norton Security, then excluded SAS from the Norton firewall. It works. Not consistently, but it works with about 90% reliability.
Thank you very much! That solved my problem.
Kudos - tkelsproxy.exe fix solved the issue
Thank you very much!
just see the Java errors on the first launch,there is no error again after i turn off and reopen sas!
I use SAS 9.4(TS1M4) in Japanese.
Unfortunately, I could not solve this problem in your way.
Thank you. I got this error after the latest Windows 10 update.
I started SAS 5 times and on the 6h attempt it opened without the error message and I have been able to use ODS RTF without a problem. I shall keep an eye on this one as it will be tedious having to do this every time I start SAS.
I have tried all of these workarounds, and none has worked for me, including the "tkelsproxy.exe" fix, futzing with firewalls and anti-virus, system restore, etc.
I called SAS support today, and the tech I spoke with had no workarounds other than the "open SAS, close SAS, open SAS" method which has not worked for me.
The SAS technician mentioned they use Windows 7. I suspect they will become more aware of the problem as more users upgrade to Windows 10. This is a serious problem that hopefully SAS is working feverishly on. While it only affects SAS functions that use JAVA such as ODS, those are some very important SAS functions.
***Update May 27*** I spoke with a SAS support manger on May 26. He convinced me that fixing this is a top priority for them and said they will be following up with everyone who filed a ticket on this issue.
tkelsproxy.exe doesn't work for me
The tkelsproxy.exe properties modification works, but only intermittently. I can't discern any clear pattern of which "opens" work. We need a permanent fix for this annoyance.
There are a lot of people following this thread, and unfortunately the problem is not yet solved (as of this writing). SAS Tech Support has issued a SAS note (which even refers to this thread...so, nice job everyone!). Here's the SAS Note:
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.
SAS is currently working with Microsoft on this issue to determine the root cause. This SAS Note will be updated when additional information is available.
Even though the problem is not yet solved ... the SAS note offers some workarounds, and you might also check this reply from Shayne in Tech Support with some helpful steps.
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.