【发布时间】:2015-10-30 03:21:31
【问题描述】:
我尝试使用之前使用 Ceylon 编译器版本 1.1 成功编译的 Ceylon 编译器版本 1.2 编译源代码,但收到以下错误消息:
source/com/example/helloworld/module.ceylon:2: error: version '1.1.0' of module 'ceylon.net' was compiled by an incompatible version of the compiler (binary version 7.0 of module is not compatible with binary version 8.0 of this compiler)
import ceylon.net "1.1.0" ;
^
source/com/example/helloworld/module.ceylon:2: error: version '1.1.0' of module 'ceylon.collection' was compiled by an incompatible version of the compiler (binary version 7.0 of module is not compatible with binary version 8.0 of this compiler)
import ceylon.net "1.1.0" ;
^
source/com/example/helloworld/module.ceylon:2: error: version '1.1.0' of module 'ceylon.io' was compiled by an incompatible version of the compiler (binary version 7.0 of module is not compatible with binary version 8.0 of this compiler)
import ceylon.net "1.1.0" ;
^
source/com/example/helloworld/module.ceylon:2: error: version '1.1.0' of module 'ceylon.file' was compiled by an incompatible version of the compiler (binary version 7.0 of module is not compatible with binary version 8.0 of this compiler)
import ceylon.net "1.1.0" ;
我认为错误消息中的“... binary version 8.0 ...”是指Java版本。
在两次编译尝试中(第一次使用 Ceylon 1.1,第二次使用 1.2)我使用 Java 版本 8,我不想将它改回 7。
用 Java 8 编译 Ceylon SDK 有帮助吗?我怎样才能与整个 Ceylon 发行版分开呢?
如何将 Ceylon SDK 的源代码导入我的项目并与我的项目一起编译?
【问题讨论】:
标签: ceylon