Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JVM issue Mac M2 #108

Open
delta2golf opened this issue Dec 14, 2023 · 1 comment
Open

JVM issue Mac M2 #108

delta2golf opened this issue Dec 14, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@delta2golf
Copy link

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!

@ap--
Copy link
Collaborator

ap-- commented Feb 22, 2024

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

@ap-- ap-- added the bug Something isn't working label Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants