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

PathVisio failing to install on Mac #155

Closed
ghost opened this issue Apr 16, 2020 · 6 comments
Closed

PathVisio failing to install on Mac #155

ghost opened this issue Apr 16, 2020 · 6 comments

Comments

@ghost
Copy link

ghost commented Apr 16, 2020

Dear all,

I am facing a problem in installing the jar file on my MacBook Pro. it gives an error as follows:
y

Can you please help me with this?
Thanks in advance!

@mkutmon
Copy link
Collaborator

mkutmon commented Apr 16, 2020

Can you check which Java version you have?

@ghost
Copy link
Author

ghost commented Apr 16, 2020

it is java version "14" 2020-03-17.

@mkutmon
Copy link
Collaborator

mkutmon commented Apr 16, 2020

PathVisio currently only works with Java 8. We are working on upgrading the Java version but the current release still requires Java 8

@ghost
Copy link
Author

ghost commented Apr 17, 2020

thanks for the information! Please update when you upgrade the java version as working with older versions of java is primarily not advised.

@ghost ghost closed this as completed Apr 17, 2020
@oolonek
Copy link

oolonek commented Mar 6, 2022

Pasting here in case it can help someone.

Had Java 17 on macOS so pathvisio complained :

➜  pathvisio-3.3.0 sh pathvisio.sh
Problem creating boot delegation class loader: java.lang.reflect.InaccessibleObjectException: Unable to make protected java.security.SecureClassLoader(java.lang.ClassLoader) accessible: module java.base does not "opens java.security" to unnamed module @49b70bc7
Installing bundles that are embedded in the jar.
Detected embedded bundle: org.apache.batik.svggen_1.7.0.v201011041433.jar
Loading jar:file:/Applications/pathvisio-3.3.0/pathvisio.jar!/org.apache.batik.svggen_1.7.0.v201011041433.jar

Followed these instructions https://medium.com/@brunofrascino/working-with-multiple-java-versions-in-macos-9a9c4f15615a to get jenv installed. Didn't know about this utility which conveniently helps to choose the java version you which to set for a given folder.

You might need to echo eval "$(jenv init -)" >> /Users/username/.zshrc at one point if jenv complains. Alternatively run jenv doctor to be sure.

Then you can navigate to your pathvisio folder and run
jenv local 1.8.0.292 (or the java8 version you have)

Like this you can have both java8 and more recent version cohabiting on your computer and linked to different folders.

@AlexanderPico
Copy link
Collaborator

AlexanderPico commented Jul 23, 2022

Update on linked instructions at medium.com:

  • Replace: brew cask install java8
  • With: brew install --cask homebrew/cask-versions/adoptopenjdk8

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants