compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Packaging fails on JDK-19

Open sureshg opened this issue 3 years ago • 0 comments

OpenJDK 19 is going to be released in few weeks. I was trying to run a sample compose desktop application with JDK19 EA build and the packaging step is failing with the following error. I know 19 is not officially supported, but still reporting the issue for visibility.

  • Env
Mac OS 12.5
Java: OpenJDk 19-EA
kotlin.version=1.7.10
compose.version=1.2.0-beta01
  • Error
Execution failed for task ':packageDmg'.
> External tool execution failed:
  * Command: [openjdk/jdk-19.jdk/Contents/Home/bin/jpackage, @kotlin-samples/compose-jb-pg/build/compose/tmp/packageDmg.args.txt]
  * Working dir: []
  * Exit code: 1
  * Standard output log: kotlin-samples/compose-jb-pg/build/compose/logs/packageDmg/jpackage-2022-09-17-11-42-04-out.txt
  * Error log: kotlin-samples/compose-jb-pg/build/compose/logs/packageDmg/jpackage-2022-09-17-11-42-04-err.txt


Error: Missing .jpackage.xml file in app-image dir (kotlin-samples/compose-jb-pg/build/compose/binaries/main/app)

It seems there is this change in JDK 19 causing the error

sureshg avatar Sep 17 '22 18:09 sureshg