Desktop productivity for business analysts and programmers

ERROR: Unable to attach current thread. ERROR: Unable to load the Java Virtual Machine.

Reply
Regular Learner
Posts: 1

ERROR: Unable to attach current thread. ERROR: Unable to load the Java Virtual Machine.

Hi,

 

I have been unable to generate a graph due to the error appearing in my log after a proc sgplot:

 

proc sgplot data=x;
histogram y / scale=percent;
run;

 

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

 

I have Sas 9.4 64 bits, running on Windows 10 64 bit PC. My Java is version 8, but wasn't it already included in 9.4? 

 

How do I resolve this problem?

 

Thank you for the help!

 

 

SAS Employee
Posts: 68

Re: ERROR: Unable to attach current thread. ERROR: Unable to load the Java Virtual Machine.

Hi ep12,

 

The issue might be resolved by now but for such problem, you may want to contact your local SAS Technical Support.
said that, an easy workaround might be to change the device you're using.

From Tools => Options => Graph, you can change the Graph Format.

 

Hope that helps.

 

Cheers,
Damo

New Contributor
Posts: 4

Re: ERROR: Unable to attach current thread. ERROR: Unable to load the Java Virtual Machine.

[ Edited ]

Hi,

 

The problem is still ongoing, and there is no graph selection in tools--options (see attached a print screen). And so far in 1 month with the technical support, no improvement have been made....

Attachment
New Contributor
Posts: 4

Re: ERROR: Unable to attach current thread. ERROR: Unable to load the Java Virtual Machine.

I also looked at my sasv9.cfg file as indicated in the note:

 

http://support.sas.com/kb/59/441.html

 

everything is written as described, the codes are matching between my file and the corrected file in that note.

Respected Advisor
Posts: 3,063

Re: ERROR: Unable to attach current thread. ERROR: Unable to load the Java Virtual Machine.

Are you running Windows 10 Creators Update by any chance? That was the latest upgrade that MS rolled out in April 2017. There are reports of Java-related SAS problems with this update in other posts. 

New Contributor
Posts: 4

Re: ERROR: Unable to attach current thread. ERROR: Unable to load the Java Virtual Machine.

Yes, effectively I have the creators update installed. Thanks for the info, I will be looking in these other posts.

 

Senior User
Posts: 1

Re: ERROR: Unable to attach current thread. ERROR: Unable to load the Java Virtual Machine.

Hi, I meet the same problem. Do you know how to solve it? Thanks 

SAS Employee
Posts: 68

Re: ERROR: Unable to attach current thread. ERROR: Unable to load the Java Virtual Machine.

Hi @qinz

 

The issue is discussed with Problem Note 60323 (Java errors due to the Windows 10 Creators Update might occur when you invoke SAS®).

All available details are listed there.

 

Cheers,
Damo

Ask a Question
Discussion stats
  • 7 replies
  • 750 views
  • 0 likes
  • 5 in conversation