Check your JAVA_HOME environment variable before running R, and make sure it points to the correct JDK install.I've seen comments saying that having both 32 and 64 bit Java JDKs is necessary for rJava, but I had only the 64 bit one installed on my machines.You need to make sure you're using the 64 bit versions of R, NetLogo, and Java JDK (or all 32 bit if that's what your machine supports).Again, I think this is to appease the rJava library. Make sure you have a Java 8 JDK installed, not just a Java runtime.It might be possible to use a later one, but I don't think it'd be worth the time to try. NetLogo uses Java 8, so I'd recommend using that with RNetLogo and rJava (the library RNetLogo uses).Unfortunately there are a lot of different pieces that need to fit together (NetLogo, R, RNetLogo, rJava, and Java). Sorry for the late reply! Someone has any other I just setup and ran a test model through RNetLogo on macOS and Windows 7, so it should still work. Then I tried the terminal command line from and back to running NLStart with RStudio but got the same error as shown above.Īs suggested by I tried the same from outside RStudio (in 64bit R 3.3.3) but again the same error : org/nlogo/workspace/Controllable : Unsupported major.minor version 52.0Īt 1(Native Method)Īt (ClassLoader.java:637)Īt (ClassLoader.java:621)Īt (SecureClassLoader.java:141)Īt (URLClassLoader.java:283)Īt $000(URLClassLoader.java:58)Īt $1.run(URLClassLoader.java:197)Īt (Native Method)Īt (URLClassLoader.java:190)Īt $AppClassLoader.loadClass(Launcher.java:301)Īt (ClassLoader.java:295) NLStart("C:/Program Files/NetLogo 6.0.1/app", gui = FALSE, nl.jarname = "netlogo-6.0.1.jar") I tried specifying nl.jarname to NLStart but had the same error as # to run RNetLogo in headless mode disable AWT before loading RNetlogo I wonder if (& am worried that) there is some deeper incompatibility going on that requires a terminal fix. But, it looks like RStudio is still reaching for the new version of Java (8). Interestingly, I had issues with R asking me to install an old version of Java (version 6) when I loaded RNetLogo's library. NLStart("/Applications/NetLogo 6.0.1/Java", gui = FALSE, nl.jarname = "netlogo-6.0.1.jar") # these strings can be stored in variables, of course)Īt (Class.java:348)Īt (ClassLoader.java:424)Īt (ClassLoader.java:357) I checked to be sure the jar file name and path name were the same as you suggest. I moved to a friend's Mac Machine to see if I would have more success, but alas, no dice. Unfortunately, I have tried pointing to the exact JAR with no luck. Loaded via a namespace (and not attached): stats graphics grDevices utils datasets methods base : org/nlogo/workspace/ControllableĪt 0(Native Method)Īt (Class.java:249)Ĭaused by: Īt RJavaClassLoader.findClass(RJavaClassLoader.java:383)Īt (ClassLoader.java:306)Īt (ClassLoader.java:247) > setwd("/Applications/NetLogo 6.0.1/Java") > Sys.setenv(NOAWT=1) # to run RNetLogo in headless mode disable AWT before loading RNetlogo Please read R for Mac OS X FAQ (see Help) section 9 and adjust your system preferences accordingly. WARNING: You're using a non-UTF8 locale, therefore only ASCII characters will work. 'help.start()' for an HTML browser interface to help. Type 'demo()' for some demos, 'help()' for on-line help, or 'citation()' on how to cite R or R packages in publications. Type 'contributors()' for more information and R is a collaborative project with many contributors. Natural language support but running in an English locale Type 'license()' or 'licence()' for distribution details. You are welcome to redistribute it under certain conditions. R is free software and comes with ABSOLUTELY NO WARRANTY. R version 3.3.2 () - "Sincere Pumpkin Patch"Ĭopyright (C) 2016 The R Foundation for Statistical Computing
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |