1

IntelliJ IDEA GROOVY 工程无法使用 JDK 11?

 3 years ago
source link: https://www.v2ex.com/t/802907
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Java

IntelliJ IDEA GROOVY 工程无法使用 JDK 11?

  zeroxia · 11 小时 40 分钟前 · 449 次点击

想折腾下安卓,于是看到 Groovy,想学习一下。VS Code 貌似支持的一般,插件基本没有自动完成,也不能 Debug,倒是有个 Linting 功能,不知道为啥,非得开一个 cmd 窗口在那杵着。

于是就决定 IDE 了,下载了 IntelliJ IDEA 。

创建工程:

create project

create project

一个 Hello World 编译,直接失败:

build failure

java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

Google 一下,结果不多,但是第一条就是直接匹配:

https://youtrack.jetbrains.com/issue/IDEA-276715

这下是让我更加讨厌 Java 和 JetBrains 那一坨 IDE 了。

非得用 Java 1.8 吗?

算了,我还是 VS Code 加 command line 吧。。。需要的时候做个 Task,凑活运行。

command line


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK