Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 428 Bytes

macos.md

File metadata and controls

12 lines (7 loc) · 428 Bytes

Using java-gtk on MacOS

Install GTK libraries

Setting up GTK for Mac OS

Running a java-gtk application

On MacOS the main thread of a java-gtk application needs to be thread 0. In order to start the application on the correct thread the option -XstartOnFirstThread needs to be passed to the JVM

Example: ./gradlew run -Dorg.gradle.jvmargs="-XstartOnFirstThread"