if [ -n "$(which java)" ] then R CMD javareconf fi