Since upgrading commandbox to 5.9.1, we get a bunc...
# box-products
d
Since upgrading commandbox to 5.9.1, we get a bunch of Java options in the runtime arguments. The one that seems to be causing a problem when we call an external java process as an executable from within Lucee is
WARNING: package com.sun.java.swing.plaf.nimbus not in java.desktop
This ends up in the output from the java processbuilder. This isnt a problem on earlier versions of Commandbox Is there a way we can stop this output from being included in the response from the external process?
I worked around this by commenting this line in ServerService.cfc
//systemSettings.setSystemSetting( 'JDK_JAVA_OPTIONS', systemSettings.getSystemSetting( 'JDK_JAVA_OPTIONS', javaOpens & ' ' & javaExports )  );
b
@Dean I'm not aware of a way to hide the warning. It's comes from the JDK itself
And I don't understand why that package isn't in that module in some versions of java, because other versions I tested on totally had it
d
We are using Corretto JVM
b
They must have moved it at some point, which is pretty annoying for me since I'm trying to support all the versions of Java and they have those stupid warnings
FWIW, your servers won't work on Java 16+ without those add opens
d
Thats ok for now. The only reason we do things this way is we have to run an external jar which allows for http calls to have double slashes in the URL. If our mates at Lucee fix https://luceeserver.atlassian.net/browse/LDEV-3537 then we can ditch that external solution and the jvm options wont be an issue