MannLabs / scPortrait

https://mannlabs.github.io/scPortrait/html/index.html
Apache License 2.0
26 stars 0 forks source link

Java unavailable after openjdk install #92

Closed nik-as closed 9 hours ago

nik-as commented 9 hours ago

On macOS 12.2, when installing openjdk with mamba install -c conda-forge openjdk, echo $JAVA_HOME returns an empty line. Similarly, the return of os.getenv("JAVA_HOME") from within Python 3.10 is empty. This leads to The operation couldn’t be completed. Unable to locate a Java Runtime. when building the docs.

nik-as commented 9 hours ago

I solved this by restarting my shell, this updated JAVA_HOME, so that os.getenv("JAVA_HOME") from within Python 3.10 now returns path/to/env/lib/jvm.