Java 错误,而 运行 biomod2 中的 maxent

Java error while running maxent in biomod2

我是来自 R 的 运行ning maxent,在包 biomod2 中,出现以下错误。我不是来自技术背景,也不确定为什么会发生此错误。是内存问题还是有人说 java 路径没有设置。但是我按照说明在 R 中将 maxent 设置为 运行 并且还下载了 Java Platform, Standard Edition Development Kit 并按照此 pdf 中的说明为其设置路径:http://modata.ceoe.udel.edu/dev/dhaulsee/class_rcode/r_pkgmanuals/MAXENT4R_directions.pdf

如果您能帮助我理解这个问题及其任何解决方案,我将不胜感激。

非常感谢

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 E:\bioclim_2.5min\model/maxent.jar environmentallayers
="rainfed/models/1432733200/m_47203134/Back_swd.csv" 
samplesfile="rainfed/models/1432733200/m_47203134/Sp_swd.csv" 
projectionlayers="rainfed/models/1432733200/m_47203134/Predictions/Pred_swd.csv" 
outputdirectory="rainfed/models/1432733200/rainfed_PA1_Full_MAXENT_outputs" 
outputformat=logistic  redoifexists visible=FALSE linear=TRUE quadratic=TRUE 
product=TRUE threshold=TRUE hinge=TRUE lq2lqptthreshold=80 l2lqthreshold=10 
hingethreshold=15 beta_threshold=-1 beta_categorical=-1 beta_lqp=-1 
beta_hinge=-1 defaultprevalence=0.5 autorun nowarnings notooltips 
noaddsamplestobackground' had status 1 
3: In file(file, "rt") :
 cannot open file 'rainfed/models/1432733200/rainfed_PA1_Full_MAXENT_outputs/rainfed_PA1_
Full_Pred_swd.csv': No such file or directory

我刚刚设法解决了这个问题 - 这是指定文件路径的问题。对我来说,我在其中一个文件夹名称中有一个 space,但在 maxent.jar 文件的路径中不被接受。从你的错误来看,它看起来可能是两个反斜杠。

E:\bioclim_2.5min\model/maxent.jar

应该可以阅读

E:/bioclim_2.5min/model/maxent.jar