gpt4 book ai didi

eclipse - 没有 ceylon 可运行元素

转载 作者:行者123 更新时间:2023-12-02 04:15:19 27 4
gpt4 key购买 nike

我尝试使用 Ceylon 和 Eclipse。我已经安装了JDK。我的计算机中有 Java 版本 7 和 8。

Eclipse的配置看起来不错,我可以看到Ceylon透视图,创建项目,我有一个Ceylon文件,

void hello() {
print("hello world");
}

...但是如果我启动一个程序,我会出现一个窗口错误,提示“No ceylon runnable element”

要运行,我单击运行为 > Ceylon Java 应用程序

我不明白这个错误。有什么问题吗?

最佳答案

注释它共享:

shared void hello() {
print("hello world");
}

您的运行配置(运行 → 运行配置...)应如下所示:

run configuration

替换您的项目/模块/版本/包。

关于eclipse - 没有 ceylon 可运行元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27114605/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com