Hi all,
I have an issue when I make package for desktop app (behavior is the same for mac and windows11).
Application runs normally from IDE or if I use gradlew.bat run on any machine.
But if I install the packed (deb or msi) It will just try to start? happens in a sec, small loading spinner near cursor and done. App never starts. There is no any error I can tell you.... I get nothing...
Last thing I've added to the app was Koin with annotations (ksp).
Does this require adding anything for the build?
a
Alexander Maryanovsky
03/09/2024, 5:03 PM
You could try redirecting System.err to a file right at the very start of your main, and see if it’s the app that crashes.
m
Michael Paus
03/09/2024, 7:29 PM
The first thing to do should be to run the gradle task “runReleaseDistributable” from your IDE. Most problems of this kind can be located already this way.
v
Vedran
03/10/2024, 8:24 AM
@Michael Paus thank you!! This is the way. Feel so stupid, I did not know this exists.
Error is (Unsupported version number [65.0] (maximum 62.65535, Java 18))
Now I just have to figure it out, but at least I have some input now.
a
Alexander Maryanovsky
03/10/2024, 8:44 AM
You’re compiling for Java 21
m
Michael Paus
03/10/2024, 10:19 AM
If you want to use Java 21 for packaging you also have to use the latest ProGuard version which can be configured this way: