java classloader hangs trying to lazy load java.awt classes

52 views
Skip to first unread message

David Maffitt

unread,
Feb 20, 2020, 10:55:51 AM2/20/20
to node-java
I have an electron app that is successfully using node-java.  Certain actions result in calls to java that cause java to load java.awt.Color lazily, that is, well after other classes have been loaded.  These calls hang and it seems the java classloader is hanging trying to load this class.  This class is used for computation and not display. Using
java.options.push('-Djava.awt.headless=true')
,or not, has no effect.

Environment is Mac 10.15.3, 
electron 3.1.13
java: jre-8u241-macosx-x64

Any ideas of things to try?
Reply all
Reply to author
Forward
0 new messages