Hi Ben,

This is obviously a rJava problem as "library(rJava)" does not work. In fact
it seems to be a java related problem:

  call: stop("No CurrentVersion entry in '", key, "'! Try re-installing Java
  and make sure R and Java have matching architectures.")

Which version of java you are using (if any)? See, e.g.:  system("java
-version") . Can you run maxent outside of R?

The problem could be related to your OS, and whether it is 32 or 64 bits,
but you not report that. Please always include the results of
sessionInfo()    when reporting a bug.

I would start with updating java, and if that does not do it, also R. You
might also try a previous version of rJava.
Perhaps the info here can help you solve this problem:
http://www.rforge.net/rJava/
http://rwiki.sciviews.org/doku.php?id=packages:cran:rjava

This list is probably not a good venue for solving rJava problems. You could
write the rJava maintainer or the wider R & java community which, I believe,
can be reached here:
http://mailman.rz.uni-augsburg.de/mailman/listinfo/stats-rosuda-devel

I am glad you like the dismo vignette!

Hth & best, Robert


On Thu, Oct 20, 2011 at 6:32 PM, Ben Weinstein
<benweinstein2010@gmail.com>wrote:

> Hi all,
>
> Has anyone had an error with the newest versions of dismo and rJava on
> windows? I'm using r 2.13.1
> I can install the dismo library, but not the rJava. Do i really need to
> reinstall r for that slight upgrade to 13.2? Seems like something bigger is
> going on here.
>
> Working my way through the SDM vignette produced by Robert and Jane Elith.
> Really great stuff. Thanks for the hard work!
>
> Specifically:
> > me <- maxent(predictors, occtrain)
> Loading required package: rJava
> Error : .onLoad failed in loadNamespace() for 'rJava', details:
>  call: stop("No CurrentVersion entry in '", key, "'! Try re-installing Java
> and make sure R and Java have matching architectures.")
>  error: object 'key' not found
> In addition: Warning messages:
> 1: In .local(x, p, ...) :
>  0.784313725490196% of the presence points have NA predictor values
> 2: package 'rJava' was built under R version 2.13.2
> Error in .rJava() : rJava cannot be loaded
>
> Or more generally:
>
> > maxent()
> Loading required package: rJava
> Error : .onLoad failed in loadNamespace() for 'rJava', details:
>  call: stop("No CurrentVersion entry in '", key, "'! Try re-installing Java
> and make sure R and Java have matching architectures.")
>  error: object 'key' not found
> In addition: Warning message:
> package 'rJava' was built under R version 2.13.2
> Error in .rJava() : rJava cannot be loaded
>
> Thanks for the help
>
> Ben Weinstein
>
> --
> Ben Weinstein
> Graduate Student
> Ecology and Evolution
> Stony Brook University
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

