Koneko Toujou
02/05/2023, 6:20 AMephemient
02/05/2023, 6:26 AMephemient
02/05/2023, 6:26 AMKoneko Toujou
02/05/2023, 6:27 AMjaotc
but i dont know what to give itephemient
02/05/2023, 6:29 AMKoneko Toujou
02/05/2023, 6:30 AM> jaotc --compile-for-tiered --verbose --output DESKTOP.AOT --directory desktop\build\classes\kotlin\jvm\main
Compiling DESKTOP.AOT...
Found linker: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\bin\Hostx64\x64\link.exe
Error: java.lang.NoClassDefFoundError: kotlin/jvm/functions/Function3
java.lang.InternalError: java.lang.NoClassDefFoundError: kotlin/jvm/functions/Function3
Koneko Toujou
02/05/2023, 6:39 AMKoneko Toujou
02/05/2023, 7:35 AM> Configure project :desktop
e: C:\Users\clark\IdeaProjects\LuaJIT_Kotlin_MultiPlatform\desktop\build.gradle.kts:45:5: Val cannot be reassigned
e: C:\Users\clark\IdeaProjects\LuaJIT_Kotlin_MultiPlatform\desktop\build.gradle.kts:45:26: The boolean literal does not conform to the expected type Property<Boolean!>!
e: C:\Users\clark\IdeaProjects\LuaJIT_Kotlin_MultiPlatform\desktop\build.gradle.kts:46:5: Unresolved reference: main
e: C:\Users\clark\IdeaProjects\LuaJIT_Kotlin_MultiPlatform\desktop\build.gradle.kts:47:9: Unresolved reference: javaLauncher
e: C:\Users\clark\IdeaProjects\LuaJIT_Kotlin_MultiPlatform\desktop\build.gradle.kts:48:13: Val cannot be reassigned
e: C:\Users\clark\IdeaProjects\LuaJIT_Kotlin_MultiPlatform\desktop\build.gradle.kts:48:31: Type mismatch: inferred type is JavaLanguageVersion! but Property<JavaLanguageVersion!>! was expected
e: C:\Users\clark\IdeaProjects\LuaJIT_Kotlin_MultiPlatform\desktop\build.gradle.kts:49:13: Val cannot be reassigned
e: C:\Users\clark\IdeaProjects\LuaJIT_Kotlin_MultiPlatform\desktop\build.gradle.kts:49:22: Type mismatch: inferred type is JvmVendorSpec! but Property<JvmVendorSpec!>! was expected
Koneko Toujou
02/05/2023, 7:36 AMgraalvmNative {
binaries.all {
resources.autodetect()
}
toolchainDetection = false
main {
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(17)
vendor = JvmVendorSpec.matching("GraalVM Community")
}
}
}
Koneko Toujou
02/05/2023, 7:39 AM> Task :desktop:nativeCompile FAILED
[native-image-plugin] GraalVM Toolchain detection is enabled
[native-image-plugin] GraalVM uses toolchain detection. Selected:
[native-image-plugin] - language version: 17
[native-image-plugin] - vendor: GraalVM Community
[native-image-plugin] - runtime version: 17.0.6+10-jvmci-22.3-b13
[native-image-plugin] Native Image executable path: C:\Users\clark\Downloads\graalvm-ce-java17-22.3.1\bin\native-image.cmd
Error: Please specify class (or <module>/<mainclass>) containing the main entry point method. (see --help)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':desktop:nativeCompile'.
> Process 'command 'C:\Users\clark\Downloads\graalvm-ce-java17-22.3.1\bin\native-image.cmd'' finished with non-zero exit value 1
Koneko Toujou
02/05/2023, 7:39 AMgraalvmNative {
}
Koneko Toujou
02/05/2023, 7:41 AMKoneko Toujou
02/05/2023, 7:42 AMKoneko Toujou
02/05/2023, 7:43 AMKoneko Toujou
02/05/2023, 7:50 AMKoneko Toujou
02/05/2023, 8:00 AMKoneko Toujou
02/05/2023, 8:01 AMKoneko Toujou
02/05/2023, 8:02 AMException in thread "main" java.lang.NoSuchMethodError: java.awt.Toolkit.getDefaultToolkit()Ljava/awt/Toolkit;
at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.functions.JNIFunctions$Support.getMethodID(JNIFunctions.java:1259)
at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.functions.JNIFunctions$Support.getMethodID(JNIFunctions.java:1244)
at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.functions.JNIFunctions.GetStaticMethodID(JNIFunctions.java:413)
at java.desktop@17.0.6/java.awt.Toolkit.initIDs(Toolkit.java)
Koneko Toujou
02/05/2023, 8:18 AMMichael Paus
02/05/2023, 4:29 PMKoneko Toujou
02/06/2023, 3:13 AMKoneko Toujou
02/06/2023, 3:14 AM