I and a colleague have been working on a package that depends on rJava. The program we connect to needs Java 11+ to run, and we’re running into some problems while trying to configure the .travis.yml file.
language: r warnings_are_errors: true sudo: required cache: packages apt_packages: - r-cran-rjava
But I get the following error message:
Failed with error: ‘.onLoad failed in loadNamespace() for 'rJava', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/home/travis/R/Library/rJava/libs/rJava.so': libjvm.so: cannot open shared object file: No such file or directory’
Then I tried following the second approach:
language: r warnings_are_errors: true sudo: required cache: packages apt_packages: - default-jdk before_install: - export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 - export PATH=$PATH:$JAVA_HOME/bin - export LD_LIBRARY_PATH=/usr/lib/jvm/java-11-openjdk-amd64/lib - sudo R CMD javareconf
To what I’m met with this error message:
sudo: R: command not found The command "sudo R CMD javareconf" failed and exited with 1 during .
I have made a custom bash scripts that utilizes literals, but still no dice. this is right after I got docker up and running