问题描述
我刚刚尝试了此操作,但收到了此错误消息.关于如何解决它的任何想法?我正在使用R版本3.1.1,RNetLogo_1.0-1,平台是x86_64-apple-darwin13.1.0(64位),Java 7更新60.
I just tried this, but I got this error message. Any ideas about how to fix it? I am using the R version 3.1.1, RNetLogo_1.0-1, the platform is x86_64-apple-darwin13.1.0 (64-bit), Java 7 update 60.
Sys.setenv(NOAWT=1)
library(JGR)
Sys.unsetenv("NOAWT")
JGR()
library(RNetLogo)
nl.path <- "/Applications/NetLogo 5.1.0"
NLStart(nl.path)
Error in .jnew("nlcon/Preprocess") :
java.lang.UnsupportedClassVersionError: nlcon/Preprocess : Unsupported major.minor version 51.0
推荐答案
您至少需要Java 7.
You need at least Java 7.
我错过了将软件包说明中的要求更新为Java> = 7的情况.抱歉CRAN维护人员要求我清理软件包,即更新到Java 7,并删除对旧Java和NetLogo版本的支持.
I have missed to update the requirements in the package description to Java >= 7.Sorry for that. The CRAN maintainers ask me to clean up the package, i.e. update to Java 7 and remove support for old Java and NetLogo versions.
如果应使用较旧的Java,请从CRAN存档中获取旧的RNetLogo版本(例如1.0-0).
If older Java should be used, get old RNetLogo version (e.g. 1.0-0) from CRAN archive.
最良好的祝愿,扬
这篇关于RNetLogo无法在Mac Yosemite上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!