diff --git a/flatlaf-demo/build.gradle.kts b/flatlaf-demo/build.gradle.kts index 55d7e2ef..beb241db 100644 --- a/flatlaf-demo/build.gradle.kts +++ b/flatlaf-demo/build.gradle.kts @@ -48,6 +48,9 @@ tasks { if( JavaVersion.current() >= JavaVersion.VERSION_1_9 ) attributes( "Multi-Release" to "true" ) + + // allow loading FlatLaf native library in Java 24+ (see https://openjdk.org/jeps/472) + attributes( "Enable-Native-Access" to "ALL-UNNAMED" ) } exclude( "module-info.class" ) diff --git a/flatlaf-theme-editor/build.gradle.kts b/flatlaf-theme-editor/build.gradle.kts index ffbd4982..d334d2e8 100644 --- a/flatlaf-theme-editor/build.gradle.kts +++ b/flatlaf-theme-editor/build.gradle.kts @@ -46,6 +46,9 @@ tasks { if( JavaVersion.current() >= JavaVersion.VERSION_1_9 ) attributes( "Multi-Release" to "true" ) + + // allow loading FlatLaf native library in Java 24+ (see https://openjdk.org/jeps/472) + attributes( "Enable-Native-Access" to "ALL-UNNAMED" ) } exclude( "module-info.class" )