Set the full java environment variables before running 'R CMD javareconf'

This commit is contained in:
Andrea Dell'Amico 2018-10-09 11:44:05 +02:00
parent c79bacd579
commit ca7c22f72c
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@
- block:
- name: Reconfigure the Java environment for R
shell: R CMD javareconf
shell: export JAVA_HOME=/usr/lib/jvm/java-8-oracle ; export J2SDKDIR=/usr/lib/jvm/java-8-oracle ; export J2REDIR=/usr/lib/jvm/java-8-oracle/jre ; R CMD javareconf
become: True
become_user: root

View File

@ -82,7 +82,7 @@
- block:
- name: Reconfigure the Java environment for R
shell: R CMD javareconf
shell: export JAVA_HOME=/usr/lib/jvm/java-8-oracle ; export J2SDKDIR=/usr/lib/jvm/java-8-oracle ; export J2REDIR=/usr/lib/jvm/java-8-oracle/jre ; R CMD javareconf
become: True
become_user: root