You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.lang.NoClassDefFoundError: java/lang/management/ManagementFactory
at com.github.ajalt.mordant.internal.MppInternal_jvmKt.runningInIdeaJavaAgent(MppInternal.jvm.kt:57)
at com.github.ajalt.mordant.terminal.TerminalDetection.isIntellijRunActionConsole(TerminalDetection.kt:199)
at com.github.ajalt.mordant.terminal.TerminalDetection.detectTerminal(TerminalDetection.kt:19)
at com.github.ajalt.mordant.terminal.StdoutTerminalInterface.<init>(StdoutTerminalInterface.kt:17)
at com.github.ajalt.mordant.terminal.Terminal.<init>(Terminal.kt:52)
at com.github.ajalt.mordant.terminal.Terminal.<init>(Terminal.kt:41)
at org.example.MainKt.main(Main.kt:7)
Caused by: java.lang.ClassNotFoundException: java.lang.management.ManagementFactory
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 7 more
I get the error below
when using the following Main function
and the following build.gradle.kts file
The full project is attached. I have tested this on both my Windows 11 computer and a WSL instance running Ubuntu 22.04.1 LTS.
mordant_bug.zip
The text was updated successfully, but these errors were encountered: