https://kotlinlang.org logo
Title
s

Siva Nimmala

09/03/2021, 7:28 AM
Hi everyone, I have generated native exe using Jetpack Compose and tried to run on another laptop but it's not executing without Java. How to generate native build including JVM binaries? Please help.
o

olonho

09/03/2021, 11:13 AM
Which version of Compose?
s

Siva Nimmala

09/03/2021, 11:47 AM
1.0.0-alpha3
o

olonho

09/03/2021, 12:00 PM
it includes JVM (using jpackage https://openjdk.java.net/jeps/392), you need to figure out what stops it from running
s

Siva Nimmala

09/03/2021, 1:32 PM
ok Thank you
b

Big Chungus

09/03/2021, 2:22 PM
Try running it from powershell to see boot logs
s

Siva Nimmala

09/03/2021, 2:36 PM
Ok, I will try, thanks
l

Lukas K-G

09/04/2021, 8:38 AM
I have the same problem. starting with powershell did not show any additional logs.
Or do i need to provide any parameters to enable logging?
b

Big Chungus

09/04/2021, 9:14 AM
Hmm try setting LOG_LEVEL env var to trace
l

Lukas K-G

09/04/2021, 10:42 AM
Thx, I will give it a try once I am back at the PC.
Unfortunately still no output. Application starts normally when launching from ide. 🤔
b

Big Chungus

09/04/2021, 5:09 PM
Hmm, do you have multiple JDKs installed? It might be that it tries to look up a shared jdk before using embedded one
And as such ide might be using different jdk than your default one on the path
l

Lukas K-G

09/04/2021, 7:06 PM
I also tried it on a different pc (without ide) where it worked before. I will have to trace my steps that caused it to break. 🤔
b

Big Chungus

09/04/2021, 7:11 PM
If you have time to spare I'd recommend you to try running the app on fresh vm
l

Lukas K-G

09/17/2021, 8:44 PM
I managed to fix this with the help of https://github.com/JetBrains/compose-jb/issues/1154#issuecomment-918059462 in case someone else stumbled upon this.
👍 1