[R] [stats-rosuda-devel] Error .jcall(mxe, "S", "fit", c("autorun", "-e", afn, "-o", dirout, : java.lang.NoSuchMethodError: density.Params.readFromArgs([Ljava/lang/String; )Ljava/lang/String;

Simon Urbanek simon.urbanek at r-project.org
Tue Nov 15 15:51:37 CET 2011


Please ask the authors and/or discussion list of dism, it may be a bug in dism or incompatibility between the maxent you are using and the package, I can't check sine maxent has a restrictive license. Also please do not cross-post to multiple mailing lists.
Thanks,
Simon


On Nov 14, 2011, at 1:46 AM, ahwangyuwei wrote:

> Dear all,
>     I get the error when I use maxent.jar:
> Error .jcall(mxe, "S", "fit", c("autorun", "-e", afn, "-o", dirout,  : 
>   java.lang.NoSuchMethodError: density.Params.readFromArgs([Ljava/lang/String;)Ljava/lang/String;
>  
> sessionInfo() result: 
> R version 2.14.0 (2011-10-31)
> Platform: i386-pc-mingw32/i386 (32-bit)
> locale:
> [1] LC_COLLATE=Chinese_People's Republic of China.936 
> [2] LC_CTYPE=Chinese_People's Republic of China.936   
> [3] LC_MONETARY=Chinese_People's Republic of China.936
> [4] LC_NUMERIC=C             &n!
>  bsp;                        
> 
> [5] LC_TIME=Chinese_People's Republic of China.936    
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base     
> other attached packages:
> [1] maptools_0.8-10 lattice_0.20-0  foreign_0.8-46  rJava_0.9-2    
> [5] dismo_0.7-11    raster_1.9-41   sp_0.9-91      
> loaded via a namespace (and not attached):
> [1] grid_2.14.0
> > 
> &nb!
>  sp;
> 
> The details:
> I am using the Dism!
>  o packag
> 
> e.Dismo has a function 'maxent' that communi-
> 
> cates with this program(MaxEnt).MaxEnt is available as a stand-alone Java program. 
> It is normal when I execute the command :
>     "jar <- paste(system.file(package="dismo"), "/java/maxent.jar", sep='')" 
> when I execute the function:
>         xm <- maxent(predictors, pres_train, factors='biome').
> The R show the error.
>  
>  
> Java is correct installed ,version is 1.60._18.
> My R version is 2.14.0.
>  I don't know how to solve the problem. Will you help me out?
> Thank you,all.
>                           Yuwei Wang
> Cnic,CAS
>          
> _______________________________________________
> stats-rosuda-devel mailing list
> stats-rosuda-devel at listserv.uni-augsburg.de
> http://mailman.rz.uni-augsburg.de/mailman/listinfo/stats-rosuda-devel



More information about the R-help mailing list