Java Error: Could not initialize class sun.lwawt.macosx.LWCToolkit

Hi GregS,

First of all, please try to set in the environment variable, run:
“HEADLESS=true ./plugin.sh”

We have developed a test program to help to diagnose the problem. Please down the zip here:

Then, unzip the downloaded file to obtain the Test.class file. Copy the Test.class file to the script folder. Then, change the last line of plugin.sh to:
“$JAVA” -Xms4096m -Xmx8192m -XX:MaxPermSize=4096m -Djava.awt.headless=$HEADLESS -cp . Test

The output is expected to be:
java.awt.headless: true
GraphicsEnvironment.isHeadless(): true

Please try.

Best regards,
Jick Yeung