Espero que puedan darme una solución a mi problema.
Acabo de empezar a aprender Kotlin. Mi idea es comenzar realizando programas con el "Standalone Compiler" que me proporcionan en la página oficial de Kotlin.
fun main(args: Array) { println("Hello World!") println("How're you?") }
fun main(args: Array<String>) {
println("Hello World!")
println("How're you?")
}
Guardarlo con el nombre "hello.kt" y compilarlo con el siguiente comando: kotlinc hello.kt -include-runtime -d hello.jar
kotlinc hello.kt -include-runtime -d hello.jar
Exception in thread "main" java.lang.NoClassDefFoundError: gnu.trove.THashMap at com.intellij.openapi.vfs.CharsetToolkit.(Unknown Source) at com.intellij.util.LineSeparator.(Unknown Source) at com.intellij.util.LineSeparator.(Unknown Source) at com.intellij.util.LineSeparator.getSystemLineSeparator(Unknown Source) at org.jetbrains.kotlin.cli.common.messages.PlainTextMessageRenderer.(Unknown Source) at org.jetbrains.kotlin.cli.common.messages.MessageRenderer.(Unknown Source) at org.jetbrains.kotlin.cli.common.CLITool.exec(Unknown Source) at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit(Unknown Source) at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMain(Unknown Source) at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler$Companion.main(Unknown Source) at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.main(Unknown Source) Caused by: java.lang.ClassNotFoundException: gnu.trove.THashMap at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 11 more
Exception in thread "main" java.lang.NoClassDefFoundError: gnu.trove.THashMap at com.intellij.openapi.vfs.CharsetToolkit.(Unknown Source) at com.intellij.util.LineSeparator.(Unknown Source) at com.intellij.util.LineSeparator.(Unknown Source) at com.intellij.util.LineSeparator.getSystemLineSeparator(Unknown Source) at org.jetbrains.kotlin.cli.common.messages.PlainTextMessageRenderer.(Unknown Source) at org.jetbrains.kotlin.cli.common.messages.MessageRenderer.(Unknown Source) at org.jetbrains.kotlin.cli.common.CLITool.exec(Unknown Source) at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit(Unknown Source) at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMain(Unknown Source) at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler$Companion.main(Unknown Source) at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.main(Unknown Source) Caused by: java.lang.ClassNotFoundException: gnu.trove.THashMap at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 11 more
¿Alquien sabe a qué se debe? ... ¿Necesitaré alguna versión diferente del JDK? Espero alguno pueda responder a mi pregunta. Saludos.