https://kotlinlang.org logo
Title
m

mzgreen

04/19/2021, 12:29 PM
Does Compose Desktop require JDK 15 now? Or it should work on 11? I've just downloaded newest IntelliJ CE and created an empty compose project using intellij wizard and it doesn't run. I'm getting some class loading errors. I have jdk 11 configured on my system but maybe something has changed and now compose requires newer version?
j

jim

04/19/2021, 12:42 PM
What does the class loading errors say?
a

alexey.tsvetkov

04/19/2021, 1:41 PM
Compose Desktop requires JDK 15+ for packaging (creating dmg, msi, deb, etc) and runDistributable task. For everything else (running like any other non-packaged Java app) JDK 11 should be fine.
s

Samuel Michael

04/19/2021, 2:05 PM
Yeah, this always happens if you don't configure your sdk to 11 (or other one) before or after generating a project.
m

mzgreen

04/19/2021, 2:34 PM
I'm getting UnsupportedClassVersionError. java --version prints 11 🤔
a

alexey.tsvetkov

04/19/2021, 2:51 PM
@mzgreen what exactly do you do? What task do you run? What’s the output?
Build scan
./gradlew --scan <TASK_NAME>
would be helpful
m

mzgreen

04/19/2021, 3:00 PM
Ok I know what it was. I haven't noticed it first time but I tapped Next without specifying Project JDK. Maybe Next button should be disabled if it's required to set that? I created a new project, set it to java 11 and now everything works fine.
s

Samuel Michael

04/19/2021, 3:01 PM
Cool, yeah that's what I was talking about! Should have sent a screenshot earlier, agreed this can be tricky and should maybe have popup or disable advancing without a valid config...
👍 1
c

Colton Idle

04/20/2021, 11:35 AM
Requires 15 for packaging? Could have sworn I packaged with 14 just a few weeks ago.
a

alexey.tsvetkov

04/20/2021, 11:45 AM
There is a number of issues with packaging with JDK 14 (e.g binaries signing on Mac OS), so we’ve bumped the requirements.
👍 3
c

Chris Sinco [G]

04/20/2021, 7:15 PM
Yeah I had issues a few weeks ago with 14 and didn’t have time to dig into it. I’ll try 15 and see if I’m successful.
a

alexey.tsvetkov

04/21/2021, 9:56 AM
BTW signing is currently broken anyway by recent changes. It will be fixed once https://github.com/JetBrains/compose-jb/pull/603 is merged
👍 3