Using RWeka M5P in RStudio gives java.lang.NoClassDefFoundError: no / uib / cipr / matrix / Matrix

I have an R Script that worked great where I use the RWeka M5P algorithm.

For reasons unknown to me, it stops working correctly, and now I get

Error in .jcall(o, "Ljava/lang/Class;", "getClass") : 
    java.lang.NoClassDefFoundError: no/uib/cipr/matrix/Matrix

Presumably this is due to the fact that I am updating RStudio or Windows or R or some kind of package. It is strange that Script works fine when I run it from a simple R gui. So this is due to RStudio and rJava (the source of the possible problem indicated here ). However, I do not know how to fix it; all the tips that I have read so far relate to MacOS or Linux, but I'm on Windows 10. My version of Java

java version "1.8.0_72"
Java(TM) SE Runtime Environment (build 1.8.0_72-b15)
Java HotSpot(TM) Client VM (build 25.72-b15, mixed mode)

My colleague can run the same Script without problems in Windows 10 (the same updates due to company policies) and RStudio (same version: 1.0.136). Her version of Java

java version "1.8.0_101",
Java(TM) SE Runtime Environment (build   1.8.0_101-b13),
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

So there seems to be some random wrong configuration on my PC, but I just don't know where to look.

Can anybody help me?

platform x86_64-w64-mingw32 arch x86_64
system os mingw32 x86_64, mingw32 status major 3 minor 3.2
year 2016 month 10 months day 31 svn rev 71607
language R version .string R version 3.3.2 (2016-10-31) nickname Sincere Pumpkin Patch

+4
source share
1 answer

RWeka Odds and Ends , WEKA_HOME Weka (WPM), , . , .

Sys.getenv("WEKA_HOME") # where does it point to? Maybe some obscure path? 
# if yes, correct the variable:
Sys.setenv(WEKA_HOME="C:\\MY\\PATH\\WEKA_WPM")
library(RWeka)
WPM("list-packages", "installed")

M5P , .

+4

Source: https://habr.com/ru/post/1667898/


All Articles