【问题标题】:Java error while running maxent in biomod2在 biomod2 中运行 maxent 时出现 Java 错误
【发布时间】:2015-05-28 10:45:11
【问题描述】:

我在包 biomod2 中从 R 运行 maxent,出现以下错误。我不是来自技术背景,也不确定为什么会发生这个错误。是内存问题还是有人说没有设置java路径。但我按照说明将 maxent 设置为在 R 中运行,还下载了 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

【问题讨论】:

  • 我刚刚遇到了这个问题。对我来说,biomod2 中的所有其他模型都在工作,MaxEnt 从dismo 运行良好。你设法解决了这个问题吗?

标签: java r maxent


【解决方案1】:

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

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

应该读

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

【讨论】:

  • 我也有同样的问题,@Andrew ...有人设法解决了这个问题吗?我在文件夹名称中没有空格......而且我无法修复反冲......无论我使用哪种“睫毛”,它都会自动记录反冲..
猜你喜欢
  • 2016-06-13
  • 1970-01-01
  • 2022-01-01
  • 1970-01-01
  • 2018-05-30
  • 1970-01-01
  • 2013-03-14
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多