Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试在 Eclipse 中使用 Ceylon。我已经安装了JDK。我的计算机中有 Java 版本 7 和 8。
Eclipse的配置看起来不错,我可以看到Ceylon透视图,创建项目,我有一个Ceylon文件
void hello() { print("hello world"); }
...但是如果我启动一个程序,我会出现“没有锡兰可运行元素”的窗口错误
要运行,我单击Run as > Ceylon Java application
我不明白这个错误。问题是什么?
注释它shared:
shared
shared void hello() { print("hello world"); }
您的运行配置(Run → Run Configurations...)应如下所示:
替换您的项目/模块/版本/包。