You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The node-java project, which allows to embed Java and wrap its classes from inside a node.js app, has an analogous problem with AWT on macOS. The relevant issue is joeferner/node-java#21. But there is a comment saying you can set an environment variable JAVA_STARTED_ON_FIRST_THREAD_pid=1 where pid is the process ID of the parent process, and then everything magically works. Let's try it!
The text was updated successfully, but these errors were encountered:
It almost works! There is just one problem: the GUI never actually appears. But it doesn't hang. Java is working under the hood, including the AWT subsystem.
That's all I have time for now, but it might be progress.
The node-java project, which allows to embed Java and wrap its classes from inside a node.js app, has an analogous problem with AWT on macOS. The relevant issue is joeferner/node-java#21. But there is a comment saying you can set an environment variable
JAVA_STARTED_ON_FIRST_THREAD_pid=1
wherepid
is the process ID of the parent process, and then everything magically works. Let's try it!The text was updated successfully, but these errors were encountered: