kotlin-runtime.jar不存在的位置 [英] kotlin-runtime.jar non-existent location

查看:1792
本文介绍了kotlin-runtime.jar不存在的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正尝试在 IntelliJ IDEA 中运行一个简单的 Kotlin 程序。当我从这个教程页面运行Hello World示例时,我收到了这个错误,此警告:

i'm currently try to run a simple Kotlin Program in IntelliJ IDEA . when i run a Hello World sample from this tutorial page i got this errors and this warnings :

Warning:Kotlin: Classpath entry points to a non-existent location: C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.3.3\plugins\Kotlin\kotlinc\lib\kotlin-runtime.jar
Warning:Kotlin: Classpath entry points to a non-existent location: C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.3.3\plugins\Kotlin\kotlinc\lib\kotlin-reflect.jar
Error:(5, 5) Kotlin: Unresolved reference: println
Error:(4, 17) Kotlin: Unresolved reference: Array

这个图片应该解释得更多。
i应该解释安装在 D:\Program Files(x86)\ JetBrains \ Intel.comJ IDEA 2017.1 而不是 C:\Program Files(x86)\ JetBrains\IntelliJ IDEA 2016.3.3 当我复制 Kotlin plugins 文件夹中的code>文件夹并将其复制到 C:\Program Files(x86)\ JetBrains \IntelliJ IDEA 2016.3.3 \plugins (我最近创建的)问题消失了!!

this image should explain more. i should explain that IDEA installed in D:\Program Files (x86)\JetBrains\IntelliJ IDEA 2017.1 and not C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.3.3 and when I copy Kotlin folder from plugins folder from installation directory and copy that into C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.3.3\plugins (that i created recently) problem goes away!!

推荐答案

您可以手动将运行时添加为库。初学者只需要 kotlin-runtime.jar

You can add the runtime as libraries manually. Only the kotlin-runtime.jar is necessary for a beginner.

这篇关于kotlin-runtime.jar不存在的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆