Hi all,A new version of bimod2 2.0.1 is now available on R-forge (soon on cran). Maybe some of the issue you have will be solve updating the package. If not, please tell me.Best,Damien.
Le jeudi 17 janvier 2013 18:59:32 UTC+1, Frieda Beauregard a écrit :Hi Ben,I am also just starting to use biomod2, and I have the same errors! Have you got any advice for me?thanks so much,Frieda
On Friday, 16 November 2012 13:05:36 UTC-5, Ben Weinstein wrote:Hi all,I'm running maxent from R, in the package biomod2. I'm trying to figure out on which side of the equation this java error is coming from.I have the latest versions of R, maxent, and java, through i've tried going back to java 6/R.15.1/maxent e/ to no avail.I can start maxent directly without error, no java problems, my path variable is set correctly (java print out below).When i call maxent from R, about 70% of the time (mysteriously works 30%), I receive a Java binary error from windows vista, that the binary is not responding and needs to be terminated. I need to manually say stop processes, and then i of course I receive an error from R that the jar file has stopped connecting.When it fails, which again, is not all of time time, i get in R the error:Error in file(file, "rt") : cannot open the connection In addition: Warning messages: 1: running command 'java' had status 1 2: running command 'java -mx512m -jar C:/Users/Jorge/Desktop/test/maxent.jar environmentallayers="C:/Users/Jorge/Desktop/test/Adelomyia.melanogenys/MaxentTmpData/Back_swd.csv" samplesfile="C:/Users/Jorge/Desktop/test/Adelomyia.melanogenys/MaxentTmpData/Sp_swd.csv" projectionlayers="C:/Users/Jorge/Desktop/test/Adelomyia.melanogenys/MaxentTmpData/Pred/bio_11_1_swd.csv,C:/Users/Jorge/Desktop/test/Adelomyia.melanogenys/MaxentTmpData/Pred/bio_11_2_swd.csv,C:/Users/Jorge/Desktop/test/Adelomyia.melanogenys/MaxentTmpData/Pred/bio_11_3_swd.csv,C:/Users/Jorge/Desktop/test/Adelomyia.melanogenys/MaxentTmpData/Pred/bio_12_1_swd.csv,C:/Users/Jorge/Desktop/test/Adelomyia.melanogenys/MaxentTmpData/Pred/bio_12_2_swd.csv,C:/Users/Jorge/Desktop/test/Adelomyia.melanogenys/MaxentTmpData/Pred/bio_12_3_swd.csv,C:/Users/Jorge/Desktop/test/Adelomyia.melanogenys/MaxentTmpData/Pred/bio_3_1_swd.csv,C:/Users/Jorge/Desktop/test/Adelomyia.melanogenys/MaxentTmpData/Pred/bio_3_2_swd.csv,C:/Users/Jorge/Desktop/test/Adelom [... truncated] 3: In file(file, "rt") :If i copy and paste this into the command prompt, it correctly opens and sets the maxent run.I would love feedback on what could be the issue!Thanks for your time,Ben WeinsteinStony Brook UniversityMicrosoft Windows [Version 6.0.6002]Copyright (c) 2006 Microsoft Corporation. All rights reserved.C:\Users\Jorge>java -versionjava version "1.7.0_09"Java(TM) SE Runtime Environment (build 1.7.0_09-b05)Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
I moved the .jar file to a path without a space and it ran just fine using the code:
myBiomodOption <- BIOMOD_ModelingOptions(MAXENT = list(path_to_maxent.jar = 'C:/Users/tomaug/Documents/maxent.jar'))"
Putting the maxent.jar executable in a folder without space in the path then giving the path through "myBiomodOption" command fixed the problem for me.
I hope this helps!