Although I challenge to connect to database with JDBC , facing a serious problem.
import jpype import jaydebeapi JHOME = jpype.getDefaultJVMPath() jpype.startJVM(JHOME, '-Djava.class.path=D:XXXXXXXXXXXXXXXXXXXXXXXXXXojdbc8.jar')
At “jpype.startJVM” on my code gets an error, showing “Python has stopped working” on a messagebox.
And the app suddenly stop.
My machine is Windows10 x64 but I’m choosing python.exe of version x86.
This machine includes python.exe of version x64 too. This setting is not only python, but java is as well. My Java is located at “Program files” and “Program Files(x86)”. So I have set x86 environment of java to JAVA_HOME.
Jpype1 version is 0.6.3
Python is 3.6.6.
I’m bit worried about one point, Microsoft Visual C++ 201X Redistributable (x86) hadn’t been set up on this machine at the beginning.
Thanks in advance.