buszi0809
02/04/2025, 8:54 PMjvm("desktop") in the Gradle file, does not have access to the JVM classes. By default there is directory desktopMain in my module and it does not have access to JVM classes. It only works once I rename the directory to jvmMain, but then the project won't build as it looks for the desktopMain directory for actual declarations.
I thought it is a multiplatform Gradle setup issue, but then I've decided to open my project with latest stable Android Studio. It turned out that it actually has access to JVM classes from desktopMain directory. I came to conclusion that the only thing that differs between my Fleet and Android Studio is that AS uses Jetbrains Runtime JDK 17.0.11, and my Fleet was using the JDK from JAVA_HOME which was OpenJDK 17.0.14 installed with Homebrew. I've switched the JDK in fleet from OpenJDK to JBR and it magically started to have access to JVM classes in desktopMain directory mind blown
Is this an issue? Why the JDK used matters in here? Because it looks like a bug to megildor
02/05/2025, 5:08 AMgildor
02/05/2025, 5:08 AMbuszi0809
02/05/2025, 5:24 AMJAVA_HOME as JDK for IDE, because when I specifically select my OpenJDK installation it works as intended, but when I select JAVA_HOME it does not work even tho the IDE detects it as my OpenJDK installation correctly 🤔
I set my JAVA_HOME in my .zshrc file so it is maybe connectedbuszi0809
02/05/2025, 5:24 AMbuszi0809
02/05/2025, 5:52 AM