To someone who may concern,
Hi I'm plotting the ACF of CAD with the following code:
proc autoreg DATA=Combined
plots(unpackpanel only) = ACFPlot;
model CAD = Date;
run;
However, I got the following error in log:
Can someone provide some advise with this error? Thank you.
This kind of message may indicate that the version of Java is incorrect for your version of SAS. You need to verify the version of Java installed and the version that SAS expects.
Try running:
proc options option=jreoptions; run;
Look for the JRE it will look somewhat like C:\path\Java\JRE1....\bind\client\jvm.dll on windows where the .... will be the java version number.
Verify that path is there and has a JVM entry.
A not-uncommon issue with this is an IT staff "updating" java for you and removing the old version. SAS is somewhat picky abou the versions it can use. If you see a "later" version of java and the expected one not there re-install the older version and things should work again. At least it did for me when IT did this to me.
This kind of message may indicate that the version of Java is incorrect for your version of SAS. You need to verify the version of Java installed and the version that SAS expects.
Try running:
proc options option=jreoptions; run;
Look for the JRE it will look somewhat like C:\path\Java\JRE1....\bind\client\jvm.dll on windows where the .... will be the java version number.
Verify that path is there and has a JVM entry.
A not-uncommon issue with this is an IT staff "updating" java for you and removing the old version. SAS is somewhat picky abou the versions it can use. If you see a "later" version of java and the expected one not there re-install the older version and things should work again. At least it did for me when IT did this to me.
Hi ballardw, thank you for replying.
I think your advise led me to the right track. Here is the log after I ran your code:
And here is what looks like in my c drive:
if my understanding is correct the java is installed with the right version, which is 9.4?
Looking forward your reply.
That looks like the correct JVM and right path.
Can you generate plots with other statistical procedures or do this only occur with Proc Autoreg?
Hi ballardw, I correct a black error in the middle of the code and it can plot ACF and other figures now.
Thank you.
I have the same problem, how did you solve it exactly?
Well, turns out that my problem was that I have been running sas from windows search, I would run "sas 9.4 (English)", it probably runs some flawed trimmed version of sas.
So I went to my 64bit sas folder - C:\Program Files\SASHome\SASFoundation\9.4 and ran the file "sas.exe", now everything works fine for me (you can test it with : proc javainfo;run; and if this shows you any information instead of error, you are good to go). If this fixes your java problem as well, just make a shortcut for sas.exe file on your desktop.
Hope this will be your case too.
Hi ep121, sorry for the very late reply, I was away from Country and didn't get this notification from gmail by firewall.
In terms of the problem. I found that if you are still having the problem, try to run two sas, you will get an error within the first opened sas, just ignore that one and close first sas, and the second sas would work perfectly.
I hope that helps.
Hi, I have the same trouble with my SAS since I do a Windows update yesterday. I check the path and it was the same than Xusheng. I try to open 2 SAS, it doesn't work. I try sas.exe, the English version and the French version. It doesn't work. It's the first time I have this kind of issues. Does anyone have a clue what happen since yesterday (yesterday, everything was fine, I could do many graphics without any problem!).
Thank you.
It's great to hear.
I noticed this problem has been solved. But for the record, here was my accidental solution:
I had the same problem when using "ods graphics on" and it crashed when I attempted to open ods graphics editor.
SO it turned out I was having a virtual machine on. I closed the virtual machine then runing "ods graphics on;" had no problem generating graphs.
Thank you for your advice xpingli.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.
Ready to level-up your skills? Choose your own adventure.