SantanderMetGroup / downscaleR.java

Java stuff on which other java-based packages depend
Other
0 stars 1 forks source link

Cannot install on the server. #1

Open Yuanchao-Xu opened 9 years ago

Yuanchao-Xu commented 9 years ago

rJava works well, can be loaded. But downscaleR.java cannot be loaded.

All the packages can be installed successfully, but downscaleR.java cannot be loaded. When loading it, it will stop after loading rJava.

I use Java8u40, and R 3.1.2. all the dependencies are installed with the latest version. I install with the same condition on my personal computer and they can be loaded and used successfully. For other computers, either cannot be installed or can be installed and loaded. I never met such situation that the package can be installed but cannot be loaded.

Anybody has the same problem like this ?

dianalucatero commented 9 years ago

I have the same problem. Did you manage to fix it? Diana

jbedia commented 9 years ago

Hi Diana, I do not know what is the problem. It is working fine on our server. Any hints are welcome. best regards,

Joaquín

Yuanchao-Xu commented 9 years ago

I transfer the server to others and recently don't have time to check...if I have any news, I will inform you~@dianalucatero

jbedia commented 9 years ago

ok thanks, please let me know in case you find the problem cheers

dianalucatero commented 9 years ago

Dear Joaquín,

When I try to install the package using the git I have the following error:

devtools::install_github(c("SantanderMetGroup/downscaleR.java","SantanderMetGroup/downscaleR")) Downloading GitHub repo SantanderMetGroup/downscaleR.java@master Installing downscaleR.java "C:/PROGRA~1/R/R-32~1.2/bin/i386/R" --no-site-file --no-environ --no-save --no-restore CMD INSTALL \ "C:/Users/hgc874/AppData/Local/Temp/RtmpuM08t6/devtools172879821987/SantanderMetGroup-downscaleR.java-357b9ec" --library="\a00143.science.domain/hgc874/Documents/R/win-library/3.2" \ --install-tests

  • installing source package 'downscaleR.java' ... * R * inst * preparing package for lazy loading * help * installing help indices * building package indices * testing if installed package can be loaded * arch - i386 Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) : there is no package called 'downscaleR.java' Error: loading failed Execution halted *\ arch - x64 Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) : there is no package called 'downscaleR.java' Error: loading failed Execution halted ERROR: loading failed for 'i386', 'x64'
  • removing '\a00143.science.domain/hgc874/Documents/R/win-library/3.2/downscaleR.java' Error: Command failed (1)

I don't know what I'm doing wrong. Could you please help me? Regards, Diana

dianalucatero commented 9 years ago

Then if I use the functions directly from the unzip file using for (i in list.files()){source(i)} I have the following problem:

ncep.inv <- dataInventory(ncep) [2015-09-23 11:54:50] Doing inventory ... Error in .jcall("java/lang/Class", "Ljava/lang/Class;", "forName", cl, : No running JVM detected. Maybe .jinit() would help. Error in .jfindClass(as.character(class)) : No running JVM detected. Maybe .jinit() would help. .jinit() ncep.inv <- dataInventory(ncep) [2015-09-23 11:55:06] Doing inventory ... Error in .jfindClass(as.character(class)) : class not found

Maybe this is a problem of my lack of knowledge in Java but I don't know. have you experience this before?

Any help would be really appreciated :)

dianalucatero commented 9 years ago

Oh! I forgot to mention, I only have the problem above with the ncep file. If I try to do the data inventory with the observations file it works perfectly.

jbedia commented 9 years ago

Hi folks, two things:

cheers

jbedia commented 9 years ago

It finally worked after restarting in Windows. I found no problems with Ubuntu, nor in our server...