pyjnius with java 8

88 views
Skip to first unread message

Biru C. Sainju

unread,
Mar 24, 2015, 1:26:15 PM3/24/15
to pyjni...@googlegroups.com
I have been trying to install pyjnius on my mac with java 8. The make command is successfully installed but when i run make tests, all the testcases seem to fail citing unsupported major/minor verions 52.0.

Any help would be greatly appreciated.

Gábor Cseh

unread,
Sep 1, 2017, 10:10:01 AM9/1/17
to PyJNIus development ML
Hi!

I had similar problems. Did you have Java 7 installed, before you installed Java 8? In that case, did you changed the paths? Because it seems, that Pyjnius still uses Java 7. It needs the JDK_HOME, JAVA_HOME and PATH variables to be set up to the proper places. You can check, which version Pyjnius uses with the following, short Python code:

from pyjnius import autoclass

System = autoclass('java.lang.System')
print("My Jave version is: {}.".format(System.getProperty('java.version')

Cheers!
Csega
Reply all
Reply to author
Forward
0 new messages