Absolutely - mixing jre and non-jre paths doesn't sound like a good idea. It was somewhat odd idiosyncrasy of the Debian configuration - I have not seen it on any other system.
Cheers, Simon > On Nov 24, 2017, at 9:03 AM, Dirk Eddelbuettel <e...@debian.org> wrote: > > > Hi Emmanuel, > > On 24 November 2017 at 14:40, Emmanuel Bourg wrote: > | Hi Dirk, > | > | Is it possible to simply use the /usr/lib/jvm/default-java/bin/java path > | instead of /usr/lib/jvm/default-java/jre/bin/java? Historically jre/bin/ > | contained only the JRE executables, and bin/ contained the JDK tools > | (javac, jar, etc). With Java 9 the layout has been simplified and the > | executables are all in the bin/ directory. If you only use the java > | interpreter you can point to bin/java since it exists in both OpenJDK 8 > | and OpenJDK 9 packages. > > I think that is a question for Simon (CC'ed) who controls both the rJava (aka > r-cran-rjava) side as well as how r-base provides. Might be a question of > path ordering. I am not sure. I don't my side of things sets anything. > > Dirk > > | > | Emmanuel Bourg > | > > -- > http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org >