Open envas opened 5 years ago
I tried to make it independent, but I've been mostly working from Linux. The Windows one is a bug which I can fix. I'll log it as an issue.
I don't have any Mac's I can try the second one, but that symbol looks familiar. I this I encountered it on some older versions of Java JDK and the JNI. You could try setting JAVA_HOME to a more recent version of Java JDK to see if it gets further.
Okay, I think I got rid of the problems in Windows and did some changes to support Python 2.7 a bit better. Give v0.0.5 a try under Windows.
looks fine, I can commit the Windows error is gone.
I have still a problem to find the right JVM. Looking at the jvm.find_libjvm()
code the search order is IMO wrong. First, the ctypes
utility searches for a JVM library. Obviously, it finds always the first installed Java, so the later calls for PY2JDBC_JAVA_HOME and JAVA_HOME environment searches are meaningless, it cannot override the system LD_LIBRARY_PATH.
In my case, the path found by find_libjvm always points to IBM Java 1.7 regardless of the JAVA_HOME or PY2JDBC_JAVA_HOME setting. Moving ctypes utility search after the JAVA_HOME tries solved the problem.
Makes me wonder if anybody could successfully run the library on Windows or macOS?
On Windows, I get the error
which is right, because Windows does not know SIGHUP.
Om macOS I get the error
I checked the libjvm.dylib and the symbol is there.
Any idea?