Java from python on Mac with Pyjnius




Assuming you know the below commands and you are using Mac Yosemite, if not make the changes of the red text accordingly. Althought the 9th step gave me error but the hello world example from the official docs works 



  1. sudo su
  2. pip install cython
  3. export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
  4. export JRE_HOME=/System/Library/Frameworks/JavaVM.framework/Home
  5. export JDK_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK
  6. git clone git@github.com:kivy/pyjnius.git
  7. cd pyjnius
  8. make
  9. make tests






Resources:
http://baojie.org/blog/2014/06/16/call-java-from-python/
https://github.com/kivy/pyjnius
https://pyjnius.readthedocs.org/en/latest/quickstart.html

Comments

Popular Posts