Power9 - Java Endorsed Dirs - Unable to start JVM

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
jyoung
Posts: 694
Joined: Thu Jan 21, 2016 6:43 am
Location: Oklahoma City, OK USA

Power9 - Java Endorsed Dirs - Unable to start JVM

Post by jyoung »

Hey All,
We just upgraded our Power9 system to V7R4 and we are finding this error in the logs regarding the DCXJSMLIB.

Code: Select all

JVMJ9VM148E java.endorsed.dirs=/LANSA_dcxpgmlib/jsm/instance/endorsed is no longer supported. The endorsed-standards override mechanism
Unable to create Java Virtual Machine.                                                                                       
Java program completed with exit code 1 
It has Java 8 and Java 11 on the machine and everything I have read so far, says to remove the java.endorsed.dirs property or removing the endorsed folder. Not sure if this is the correct solution for JSM however. :?

I found the endorsed folder on the Power9. Is this safe to remove?
endorsed-dir.PNG
endorsed-dir.PNG (78.99 KiB) Viewed 13678 times
Where does the property for setting the endorsed folder reside on the Power9. I can't seem to find it. :?

Any thoughts on how to resolve this error?

Thanks,
Joe
BrendanB
Posts: 134
Joined: Tue Nov 24, 2015 10:29 am

Re: Power9 - Java Endorsed Dirs - Unable to start JVM

Post by BrendanB »

Joe,

the bit 'JVMJ9VM148E' suggests that it may be trying to load Java version 9.

Perhaps try:

Code: Select all

STRJSM VERSION(*JVM8064) GCHMAX(239861760)
and see if it is able to start.(to my knowledge JVM8 is the highest that Integrator supports).
I think that the VERSION(*DEFAULT) will just let the IBMi OS choose (so you are probably loading the latest version).

If specifying a particular version works, then you may wish to change the STRJSM CLP so that it defaults to those parameters.

Brendan.
Post Reply