JVM issue Mac M2
I'm encountering an issue with a Java Virtual Machine (JVM) not running in my Python environment on MacOS. Here are the steps and outputs I've encountered:
When I check my JAVA_HOME variable, it correctly points to my Java installation: % echo $JAVA_HOME /Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home
I'm trying to use a Python package paquo, but when I attempt to get the QuPath version using paquo --qupath-version, I encounter a JVMNotRunning error: Traceback (most recent call last): ... jpype._core.JVMNotRunning: Java Virtual Machine is not running
My Java version seems to be up to date, as confirmed by: % java -version java version "21.0.1" 2023-10-17 LTS Java(TM) SE Runtime Environment (build 21.0.1+12-LTS-29) Java HotSpot(TM) 64-Bit Server VM (build 21.0.1+12-LTS-29, mixed mode, sharing) I have set the JAVA_HOME variable, and my Java installation appears to be correctly configured. However, I'm still facing issues with the JVM when trying to run paquo. I'd appreciate any insights or suggestions on how to resolve this issue.
Thank you!
This might be an issue with running a non arm Python and a x86 Java, or the other way round.
It's a good idea to test a conda installation first to rule out other issues.
conda install -c conda-forge paquo