Dear R-helpers and Dr. Hijmans,

I can not invoke maxent() in GNU Linux. Could you give me any directions
on that? There is maxent.jar in version 3.3.3e in the right folder.

########################################
R:
> jar <- paste(system.file(package="dismo"), "/java/maxent.jar", sep='')
> jar
[1] "/ebio/abt6/jmao/rpacks/dismo/java/maxent.jar"

Terminal:
jmao@upa:~/rpacks/dismo/java$ ls
maxent.jar  mebridge1.jar  mebridge2.jar
########################################

Thank you in advance.

Here is my info:
###########################################################
# (1) the error
> me <- maxent(predictors, occtrain, factors='biome')
Error in .jcall(mxe, "S", "meversion") :
  java.lang.NoClassDefFoundError: density/Utils
Error in .getMeVersion() :
  "dismo" needs a more recent version of Maxent (3.3.3b or later)
Please download it here: http://www.cs.princeton.edu/~schapire/maxent/

# (2) the variables for maxent: predictors,
> summary(predictors)
Cells:  35712
NAs  :  0 0 0 0 0 0 0 0 0

            1      2      3      4     5       6     7     8      9
Min.    -23.0    0.0    0.0    0.0 100.0 -203.00  60.0 -49.0  1.000
1st Qu. 170.0  717.8  321.0   29.0 305.0   28.75 132.0 213.0  1.000
Median  228.0 1276.0  516.0   86.0 322.0  130.50 182.0 248.0  4.000
Mean    208.4 1379.0  574.3  137.3 313.7  102.20 209.6 226.1  5.116
3rd Qu. 257.0 1908.0  842.0  214.0 335.0  187.00 275.0 262.0  8.000
Max.    289.0 7682.0 2426.0 1496.0 416.0  242.00 461.0 323.0 14.000
summary based on a sample of 5000 cells, which is 14.0008960573477 %
of all cells
> summary(occ)
      lon              lat
 Min.   :-85.93   Min.   :-23.450
 1st Qu.:-79.20   1st Qu.: -2.896
 Median :-75.08   Median :  4.817
 Mean   :-71.79   Mean   :  2.449
 3rd Qu.:-65.51   3rd Qu.:  9.150
 Max.   :-40.07   Max.   : 13.950

# (3) my linux and R version
> version
               _
platform       x86_64-unknown-linux-gnu
arch           x86_64
os             linux-gnu
system         x86_64, linux-gnu
status
major          2
minor          12.0
year           2010
month          10
day            15
svn rev        53317
language       R
version.string R version 2.12.0 (2010-10-15)
> sessionInfo()
R version 2.12.0 (2010-10-15)
Platform: x86_64-unknown-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=C              LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] dismo_0.5-14  rJava_0.8-8   raster_1.7-29 sp_0.9-76

loaded via a namespace (and not attached):
[1] grid_2.12.0     lattice_0.19-17 tools_2.12.0
-- 
Jian-Feng, Mao

the Institute of Botany,
Chinese Academy of Botany,

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to