Help using Base SAS procedures

ERROR: The Java proxy is not responding.

Accepted Solution Solved
Reply
Contributor
Posts: 56
Accepted Solution

ERROR: The Java proxy is not responding.

Hello everyone,

I am trying to run this code:


proc logistic descending data = dir.liseuro_d;

model treat = cap /lackfit outroc = ps_r;

output out= ps_p XBETA=ps_xb STDXBETA= ps_sdxb PREDICTED = ps_pred;

run;


But I get back an error message about Java.

I reinstalled Java but it's still not working. I have SAS 9.3 (32)


ERROR: The Java proxy is not responding.

ERROR: The Java proxy's JNI call to start the VM failed.

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

       system administrator.

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

       system administrator.

Here are the details of Java:

12   proc options option=jreoptions;

13   run;

SAS (r) Proprietary Software Release 9.3  TS1M2

JREOPTIONS=(             -DPFS_TEMPLATE=C:\Program

Files\SASHome\x86\SASFoundation\9.3\tkjava\sasmisc\qrpfstpt.xml

-Djava.class.path=C:\PROGRA~1\SASHome\SASVER~1\eclipse\plugins\SASLAU~1.JAR

-Djava.security.auth.login.config=C:\Program

Files\SASHome\x86\SASFoundation\9.3\tkjava\sasmisc\sas.login.config

-Djava.security.policy=C:\Program

Files\SASHome\x86\SASFoundation\9.3\tkjava\sasmisc\sas.policy

-Djava.system.class.loader=com.sas.app.AppClassLoader

-Dlog4j.configuration=file:/C:/Program%20Files/SASHome/x86/SASFoundation/9.3/tkjava/sasmisc/sas

.log4j.properties

-Dsas.app.class.path=C:\PROGRA~1\SASHome\SASVER~1\eclipse\plugins\tkjava.jar

-Dsas.ext.config=C:\Program

Files\SASHome\x86\SASFoundation\9.3\tkjava\sasmisc\sas.java.ext.config

-Dsas.jre.libjvm=C:\PROGRA~2\Java\JRE16~1.0_2\bin\client\jvm.dll

-Dtkj.app.launch.config=C:\PROGRA~1\SASHome\SASVER~1\picklist          -Xms128m

-Xmx128m           )

                   Java Runtime Environment options

Any idea how to fix it??


As always, thank you very much.



Accepted Solutions
Solution
‎09-27-2016 04:48 PM
New Contributor
Posts: 3

Re: ERROR: The Java proxy is not responding.

[ Edited ]

Editor's note:  For SAS 9.2 and SAS 9.3 installs on a Windows system, a Java proxy error or “unable to load the Java virtual machine” error typically occurs when the –Dsas.jre.libjvm argument in the JREOPTIONS parameter in the SAS configuration file (ie, the SASV9.CFG file) points to an incorrect or non-existent install of the Java JRE.

The solution below provides the correct value that needs to be placed in the config file for the Dsas.jre.libjvm argument. 

 

Sorry I see you are using SAS 9.3 not 9.4

 

To resolve install Java version 7 then -

  In the Windows Start Menu, search for “notepad”, you should get the Notepad application as one of the top results. Right-click it and choose “Run As Administrator”.

 

 

For SAS 9.3, In Notepad, open the following file: “C:\Program Files\SASHome\x86\SASFoundation\9.3\nls\en\sasv9.cfg”. This is the SAS configuration file that controls many settings for SAS operation.

 

Amend the line of text startin with Dsas.jre.libjvm to -

 

Dsas.jre.libjvm=C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll

View solution in original post


All Replies
New Contributor
Posts: 3

Re: ERROR: The Java proxy is not responding.

Hi,

I suffered the same issue. With SAS 9.4 you have to manually point the Java settings to the correct location. So providing that you installed SAS 9.4 cleanly then copying and pasting the following settings into your sasv9.cfg file should work

/*  Options used when SAS is accessing a JVM for JNI processing  */

-JREOPTIONS=(

        -DPFS_TEMPLATE=C:\Program Files\SASHome\SASFoundation\9.4\tkjava\sasmisc\qrpfstpt.xml

        -Djava.class.path=C:\Program Files\SASHome\SASVersionedJarRepository\eclipse\plugins\sas.launcher.jar

        -Djava.security.auth.login.config=C:\Program Files\SASHome\SASFoundation\9.4\tkjava\sasmisc

\sas.login.config

        -Djava.security.policy=C:\Program Files\SASHome\SASFoundation\9.4\tkjava\sasmisc\sas.policy

        -Djava.system.class.loader=com.sas.app.AppClassLoader

        -Dlog4j.configuration=C:\Program Files\SASHome\SASFoundation\9.4\tkjava\sasmisc\sas.log4j.properties

        -Dsas.app.class.path=C:\Program Files\SASHome\SASVER~1\eclipse\plugins\tkjava.jar

        -Dsas.ext.config=C:\Program Files\SASHome\SASFoundation\9.4\tkjava\sasmisc\sas.java.ext.config

        -Dsas.jre.libjvm=C:\Program Files\SASHome\SASPrivateJavaRuntimeEnvironment\9.4\jre\bin\server\jvm.dll

        -Dtkj.app.launch.config=C:\Program Files\SASHome\SASVersionedJarRepository\picklist

        -Xms128m

        -Xmx128m

        Files\SASHome\SASPRI~1\9.4\jre\bin\server\jvm.dll

        Files\SASHome\SASPRI~1\9.4\jre\bin\server\jvm.dll

        Files\SASHome\SASVER~1\eclipse\plugins\SASLAU~1.JAR

        Files\SASHome\SASVER~1\eclipse\plugins\SASLAU~1.JAR

        Files\SASHome\SASVER~1\eclipse\plugins\tkjava.jar

        Files\SASHome\SASVER~1\eclipse\plugins\tkjava.jar

        Files\SASHome\SASVER~1\picklist

        Files\SASHome\SASVER~1\picklist

        )

Solution
‎09-27-2016 04:48 PM
New Contributor
Posts: 3

Re: ERROR: The Java proxy is not responding.

[ Edited ]

Editor's note:  For SAS 9.2 and SAS 9.3 installs on a Windows system, a Java proxy error or “unable to load the Java virtual machine” error typically occurs when the –Dsas.jre.libjvm argument in the JREOPTIONS parameter in the SAS configuration file (ie, the SASV9.CFG file) points to an incorrect or non-existent install of the Java JRE.

The solution below provides the correct value that needs to be placed in the config file for the Dsas.jre.libjvm argument. 

 

Sorry I see you are using SAS 9.3 not 9.4

 

To resolve install Java version 7 then -

  In the Windows Start Menu, search for “notepad”, you should get the Notepad application as one of the top results. Right-click it and choose “Run As Administrator”.

 

 

For SAS 9.3, In Notepad, open the following file: “C:\Program Files\SASHome\x86\SASFoundation\9.3\nls\en\sasv9.cfg”. This is the SAS configuration file that controls many settings for SAS operation.

 

Amend the line of text startin with Dsas.jre.libjvm to -

 

Dsas.jre.libjvm=C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll

Occasional Learner
Posts: 1

Re: ERROR: The Java proxy is not responding.

Thank you!!!

New Contributor
Posts: 2

Re: ERROR: The Java proxy is not responding.

Hi-I am having this same issue and followed the trouble shooting steps to this point, but there is no config file in that folder.  Where do I find a new one?  I am running 9.3.  The other folder points correctly to this file as the location of the file.

 

Here is information about Java-

C:\Program Files (x86)\Java\jre1.8.0_77\bin\client>java -version
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) Client VM (build 25.77-b03, mixed mode)
.....
 Directory of c:\

04/16/2016  12:23 PM    <DIR>          PROGRA~1     Program Files
04/16/2016  01:05 PM    <DIR>          PROGRA~2     Program Files (x86)
               0 File(s)              0 bytes
               2 Dir(s)  13,093,875,712 bytes free

Esteemed Advisor
Posts: 6,268

Re: ERROR: The Java proxy is not responding.

have you verified that C:\PROGRA~2\Java\JRE16~1.0_2\bin\client\jvm.dll exists?

If not, take a look at

SAS(R) 9.3 Companion for Windows

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 10544 views
  • 1 like
  • 5 in conversation