DATA Step, Macro, Functions and more

Java VM Error when running PROC SGPLOT

New User
Posts: 1

Java VM Error when running PROC SGPLOT

[ Edited ]

Hi every body,

i have a question about sas result,

when i run this code on sas base:

proc sgplot data=ews.data2;

series x=logchg y = change;


 the log is:

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


Please help me solve this problem,

thank you very much,



Super User
Posts: 13,563

Re: Java

Posted in reply to NhungPham

Which version of SAS are you running?


One thing to check if you have an IT department updating file is to see which version of Java, if any, you have installed. SAS can be a bit picky about the version of Java. You can run Proc Options and find the entry for JREOPTIONS to see which version and locations SAS expects to see Java files. If the version installed with SAS has been removed by a helpful IT department then it may need to be reinstalled.

Ask a Question
Discussion stats
  • 1 reply
  • 2 in conversation