Does Compose Desktop require JDK 15 now? Or it sho...
# compose-desktop
m
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
What does the class loading errors say?
a
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
Yeah, this always happens if you don't configure your sdk to 11 (or other one) before or after generating a project.
m
I'm getting UnsupportedClassVersionError. java --version prints 11 🤔
a
@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
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
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
Requires 15 for packaging? Could have sworn I packaged with 14 just a few weeks ago.
a
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
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
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