Edward Muller
02/18/2023, 8:09 PMephemient
02/18/2023, 8:11 PMEdward Muller
02/18/2023, 8:11 PMx64
ephemient
02/18/2023, 8:13 PMEdward Muller
02/18/2023, 8:13 PMkotlin {
val nativeTarget = macosArm64("native")
println(arch)
...
}
outputs....
> Configure project :
x86_64
ephemient
02/18/2023, 8:15 PMEdward Muller
02/18/2023, 8:18 PM/usr/bin/java --version
openjdk 17.0.1 2021-10-19
OpenJDK Runtime Environment (build 17.0.1+12-39)
OpenJDK 64-Bit Server VM (build 17.0.1+12-39, mixed mode, sharing)
I think its this java … no idea what arch that is, so probably need to assume x64/usr/libexec/java_home -V
Matching Java Virtual Machines (2):
17.0.1 (x86_64) "Oracle Corporation" - "OpenJDK 17.0.1" /Users/freeformz/Library/Java/JavaVirtualMachines/openjdk-17.0.1/Contents/Home