https://kotlinlang.org logo
Title
s

Spikey Sanju

02/25/2022, 3:24 PM
Hi folks, I was wondering if it would be possible to install
Desktop Compose App
as a
DMG file
on
M1 MacBook
?
Yes, it’s working well for simple projects like basic
networking
and
stuffs
. However, when I tried working with
SQL Delight
, the application crashed. But in my local environment I had no issues at all.
😒ame: 1
s

spierce7

02/25/2022, 3:45 PM
If you use an x86 JVM to compile it, it will work, as it will run via rosetta
c

Casey Brooks

02/25/2022, 4:13 PM
Check that you've got the jlink runtime modules configured. And also try making sure it runs with the
runDistributable
Gradle task, because it's quite possible to have the app run fine with the
run
task but for there to be some other configuration issue that doesn't show itself until the full package is linked. And using
runDistributable
will allow you to see that stacktrace
s

Spikey Sanju

02/26/2022, 4:02 AM
I got this exception 👇
Caused by: java.lang.ClassNotFoundException: java.sql.DriverManager
a

Ahmad Daneshvar

02/26/2022, 5:23 AM
Try add this to the
build.gradle.kts
👍🏻 1
s

Spikey Sanju

02/26/2022, 5:37 AM
@Ahmad Daneshvar It works like a charm now. Thanks for the quick fix!