rJava error when running dismo::maxent()

1,018 views
Skip to first unread message

Magda Dillen

unread,
Jul 3, 2020, 6:55:14 PM7/3/20
to Maxent

Hello everyone. Yesterday, I was able to run the maxent function from dismo without any problems. Today, I open my computer and try to run my code again and get errors.

I first got the following error:

> dismo::maxent()
Error in .jcheck(silent = TRUE) : 
  No running JVM detected. Maybe .jinit() would help.

So I ran .jinit(). Now when I try to run the code, I get the following error.

> dismo::maxent()
Error in rJava::.jnew("meversion") : java.lang.ClassNotFoundException

My maxent.jar in saved in the dismo/java folder and rJava is installed. I am working on a windows 10 Pro (R version 3.6.1, Rstudio version 1.2.5042) What can be the problem here, since it happened over night? Is this a rJava problem?

Sebastian Botero

unread,
Dec 18, 2020, 6:17:54 AM12/18/20
to Maxent
Hi Magda,

Im having the exact same problem. Were you able to fix it somehow?

Thanks!

Sebastian

Sebastian Botero

unread,
Dec 18, 2020, 12:54:38 PM12/18/20
to Maxent
Hi,

In case somebody runs on the same problem, I uninstalled and reinstalled r, rstudio and java, and afterwards the error was gone.
Reply all
Reply to author
Forward
0 new messages