Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
OS X Java VM problems #48
I am trying to call Java method from a compiled Java class using Python code. I dont want to run "java" executable just to run my code this I find this library really promising. Im no expert on Java but my OS X dev machine has troubles finding
My Java is the default one shipped with OS X 10.10:
But javabridge library does some nasty things to find
Since I am not expert on Java, and I have basically zero knowledge about coding Java and JNI and java libs I think better approach is to try some "known paths" for different Java vendors. AFAIK there is only Oracle Java available at this moment.
After reading Java docs and materials on the internet (and examining my own system) it looks like there are two possible places where libjvm.dylib could be located:
My installation has only (1) option valid, and the second path is non existing.
Right now I can suggest to use (2) by default (most of sources on the internet suggests this), and maybe check if your Java on your OS X does the same as (1).
Could you replicate this issue?
The user does have a point, even if it leads to an issue that I don't care to resolve in the near future. There's code in locate.py (https://github.com/LeeKamentsky/python-javabridge/blob/master/javabridge/locate.py#L42) that does a nice job using the
So it could be cleaner and that's an issue, but maybe there's no bug. I think I'll leave it for now.