简体   繁体   English

如何修复Kotlin REPL异常NoClassDefFoundError

[英]How to fix Kotlin REPL exception NoClassDefFoundError

I'm attempting to run the Kotlin REPL on my windows 10 machine, from the command line. 我试图在Windows 10计算机上从命令行运行Kotlin REPL。 I am receiving a java.lang.NoClassDefFoundError: org/jline/reader/LineReaderBuilder exception when running the command kotlinc 运行命令kotlinc时,我收到java.lang.NoClassDefFoundError: org/jline/reader/LineReaderBuilder异常

I have IntelliJ Ultimate 2019.1.3 installed, with the Kotlin plugin. 我已经安装了带有Kotlin插件的IntelliJ Ultimate 2019.1.3。 I have the Kotlin standalone compiler also installed and I've added that location to my system path. 我还安装了Kotlin独立编译器,并且已将该位置添加到系统路径中。 I've tried to run the command from the standalone directory: "C:/Tools/kotlinc/bin" but no difference. 我尝试从独立目录运行命令:“ C:/ Tools / kotlinc / bin”,但没有区别。

  • OS Name: Microsoft Windows 10 Enterprise 操作系统名称:Microsoft Windows 10 Enterprise
  • Version 10.0.16299 Build 16299 版本10.0.16299 Build 16299
  • Kotlin version 1.3.40-release-123 (JRE 1.8.0_131-b11) Kotlin版本1.3.40-release-123(JRE 1.8.0_131-b11)
  • java version "1.8.0_131" Java版本“ 1.8.0_131”

I expect the REPL to start without an exception. 我希望REPL毫无例外地启动。 What could be causing the exception? 是什么引起异常?

Thank you all! 谢谢你们!

看来这是一个错误并且已经通过Kotlin插件和kotlinc版本1.3.41(今天发布) 进行了修复

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM