question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incompatibility with Java 9 - JRE Path changed

See original GitHub issue

PyJnius looks for the path

/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/jre/lib/server/libjvm.dylib

but the jre folder doesn’t exist in this hierarchy anymore and it should look for

/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/lib/server/libjvm.dylib

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
bwkcheecommented, Sep 24, 2018

It’s not just an OSX issue if you’re using open-jdk the jre folder no longer exists. Any open jdk version >= 9 no longer has the jre folder. See http://openjdk.java.net/jeps/220 since java 9 the folder hierarchy was restructured. The jre/lib/amd64/server/libjvm.so path is no longer valid ( https://github.com/kivy/pyjnius/blob/1cbfef23fb9fcb0f15dcbfd8f4cd1fc9a54986b6/setup.py#L163 ).

1reaction
akshaysharma096commented, Apr 13, 2018

Guys, any update ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java Platform, Standard Edition Oracle JDK 9 Migration Guide
This guide focuses on changes required to make your code run on JDK 9. ... of changes to the javac compiler and source...
Read more >
Java 9: New Features and Compatibility of JDK 9 - Azul Systems
JRE version selection is no longer available. There were two ways of doing this in the past. The first was from the command...
Read more >
How to fix java.lang.UnsupportedClassVersionError
Select your JRE System Library and click Edit on the right, and choose the target JRE. Now go to Java Compiler on the...
Read more >
Java - ArchWiki
Also note on the previous output that only the JRE part of OpenJDK 8 is installed here. Change default Java environment. # archlinux-java...
Read more >
Java 8 release changes
This includes allowing colons (':') in the path other than only immediately after a single drive letter. It also allows paths that represent...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found