BookmarkSubscribeRSS Feed
mluder
Calcite | Level 5

hi

I receive the same error message using PROC LIFETEST

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

system administrator.)

But I can't find the sasenv file.

 

Using the code lines suggested, my situation is:

 

60

61 %put OS: &SYSSCP &SYSSCPL ;

OS: WIN X64_8PRO

62

63 %put SAS Mode: &SYSPROCESSNAME ;

SAS Mode: DMS Process

64

65 %put SAS Version: &sysvlong ;

SAS Version: 9.04.01M1P120413

66

67 %put User: &SYSUSERID ;

User: mludergnani

68

69 %put SASROOT: %sysget(SASROOT) ;

SASROOT: C:\Program Files\SASHome\SASFoundation\9.4

70

71 %put JAVA_HOME is: %sysget(JAVA_HOME) ;

WARNING: The argument to macro function %SYSGET is not defined as a system variable.

JAVA_HOME is:

72

73 %put CLASSPATH is: %sysget(CLASSPATH) ;

WARNING: The argument to macro function %SYSGET is not defined as a system variable.

CLASSPATH is:

74

75 %put PATH is: %sysget(PATH) ;

PATH is: C:\Program Files\SASHome\SASFoundation\9.4

NOTE: Line generated by the macro function "SYSGET".

1 C:\Program Files\SASHome\SASFoundation\9.4;C:\Program Files (x86)\Common

-

180

1 ! Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;

1 ! C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\

ERROR 180-322: Statement is not valid or it is used out of proper order.

NOTE: Line generated by the macro function "SYSGET".

1 C:\Program Files\SASHome\SASFoundation\9.4;C:\Program Files (x86)\Common

1 ! Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;

-

180

1 ! C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\

ERROR 180-322: Statement is not valid or it is used out of proper order.

NOTE: Line generated by the macro function "SYSGET".

1 C:\Program Files\SASHome\SASFoundation\9.4;C:\Program Files (x86)\Common

1 ! Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;

-

180

1 ! C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\

ERROR 180-322: Statement is not valid or it is used out of proper order.

NOTE: Line generated by the macro function "SYSGET".

1 C:\Program Files\SASHome\SASFoundation\9.4;C:\Program Files (x86)\Common

1 ! Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;

1 ! C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\

-

180

ERROR 180-322: Statement is not valid or it is used out of proper order.

NOTE: Line generated by the macro function "SYSGET".

1 C:\Program Files\SASHome\SASFoundation\9.4;C:\Program Files (x86)\Common

1 ! Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;

1 ! C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\

-

180

ERROR 180-322: Statement is not valid or it is used out of proper order.

NOTE: Line generated by the macro function "SYSGET".

1 C:\Program Files\SASHome\SASFoundation\9.4;C:\Program Files (x86)\Common

1 ! Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;

1 ! C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\

-

180

ERROR 180-322: Statement is not valid or it is used out of proper order.

 

NOTE: Line generated by the macro function "SYSGET".

2 C:\ProgramData\Lenovo\ReadyApps;

-

180

ERROR 180-322: Statement is not valid or it is used out of proper order.

NOTE: Line generated by the macro function "SYSGET".

2 C:\Program Files (x86)\CheckPoint\Endpoint

-

180

2 ! Security\Endpoint Common\bin;C:\Program Files\SASHome\Secure\ccme4;C:\Program

ERROR 180-322: Statement is not valid or it is used out of proper order.

NOTE: Line generated by the macro function "SYSGET".

2 C:\Program Files\SASHome\Secure\ccme4;

-

180

ERROR 180-322: Statement is not valid or it is used out of proper order.

NOTE: Line generated by the macro function "SYSGET".

2 C:\Program Files\SASHome\x86\Secure\ccme4

-

180

ERROR 180-322: Statement is not valid or it is used out of proper order.

WARNING: The argument to macro function %SYSGET is not defined as a system variable.

76

77 %put LD_LIBRARY_PATH is: %sysget(LD_LIBRARY_PATH) ;

LD_LIBRARY_PATH is:

78

NOTE: PROCEDURE JAVAINFO used (Total process time):

real time 0.00 seconds

cpu time 0.00 seconds

ERROR: Proc javainfo did not run correctly.

79 proc javainfo ;

80

81 run ;

82

 

83 proc options option=jreoptions ;

84

85 run ;

SAS (r) Proprietary Software Release 9.4 TS1M1

JREOPTIONS=( -DPFS_TEMPLATE=C:\Program

Files\SASHome\SASFoundation\9.4\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\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=file:/C:/Program%20Files/SASHome/SASFoundation/9.4/tkjava/sasmisc/sas.log

4j.properties

-Dsas.app.class.path=C:\PROGRA~1\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:\PROGRA~1\SASHome\SASPRI~1\9.4\jre\bin\server\jvm.dll

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

-Xmx1014m )

Specifies the Java Runtime Environment options for SAS.

NOTE: PROCEDURE OPTIONS used (Total process time):

real time 0.01 seconds

cpu time 0.01 seconds

 

How could i resolve my problem? It seems to me that I have not java installed, but I have! (1.8.0)

Thanks

1 REPLY 1
ChrisHemedinger
Community Manager

Hi @mluder  - the error is an indication that SAS cannot find the Java runtime as designated in the environment paths/SAS options.  You might need to work with your SAS admin or SAS Technical Support to find/address this.

Register for SAS Innovate 2025!! The premier event for SAS users, May 6-9 in Orlando FL. Sign up now for the best deals!

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1341 views
  • 0 likes
  • 2 in conversation