[Bioc-devel] JAVA_HOME cannot be determined on Windows on Bioconductor platform report
hp@ge@@on@g|thub @end|ng |rom gm@||@com
Mon Oct 18 21:14:24 CEST 2021
Please don't rely on JAVA_HOME to detect Java. The JDK installer on
Windows doesn't set this variable so you shouldn't expect it to be set
on the user's machine. AFAIK the other Bioconductor packages that depend
on Java don't use their own code to detect Java. Instead I believe that
they run their Java code via rJava so they delegate to rJava the
responsibility to find Java for them.
Here is the list of all Bioconductor packages that depend on rJava:
(not supported on Windows)
Feel free to take a look at how they handle this.
On 18/10/2021 10:13, Vincent Carey wrote:
> That should be fixable. The build system needs to have a correct setting
> for JAVA_HOME. But you have
> clearly nonportable code in .onLoad in paxtoolsr.R -- system("which java")
> ... this should not be
> necessary at all, just import rJava.
> On Mon, Oct 18, 2021 at 12:29 PM Augustin Luna <cannin using gmail.com> wrote:
>> I have the following error:
>> "error: JAVA_HOME cannot be determined from the Registry"
>> for this package:
>> I have been given assurances that Java is present but given this
>> error, I am not so sure and I am unsure how to debug or fix it.
>> Can anyone suggest how to proceed?
>> Augustin Luna
>> Bioc-devel using r-project.org mailing list
Bioconductor Core Team
hpages.on.github using gmail.com
More information about the Bioc-devel