我是靠谱客的博主 动人乌龟,这篇文章主要介绍java ee不能运行_Java9+移除 Java EE,导致我的 groovy 脚本无法运行,现在分享给大家,希望可以做个参考。

以以下这段代码为例

@Grab('org.jsoup:jsoup:1.10.1')

import org.jsoup.Jsoup

Jsoup.connect('https://v2ex.com').get()

.select('span.item_title > a').each {

println it.text() + ':' + 'https://v2ex.com' + it.attr('href')

}

原本是 groovy2.5+java8,可以正常跑,然后我前两天格盘重装了 mojave,直接上了 Java10,就不行了,报以下错

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/usr/local/Cellar/groovy/2.5.0/libexec/lib/groovy-2.5.0.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)

WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access

最后

以上就是动人乌龟最近收集整理的关于java ee不能运行_Java9+移除 Java EE,导致我的 groovy 脚本无法运行的全部内容,更多相关java内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(52)

评论列表共有 0 条评论

立即
投稿
返回
顶部