Page 1 of 1

Power9 - Java Endorsed Dirs - Unable to start JVM

Posted: Thu Aug 10, 2023 11:45 pm
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 13677 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

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

Posted: Thu Aug 17, 2023 11:29 am
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.