Breaking News

java – Python can’t start JVM with Jpype-Exceptionshub

Questions:

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.

How can I fix this problem?
I get same result trying it at interactive shell too.
the result of on interactive shell
I am a beginner of python though, Is it difficult for me to solve this problem.

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.

How to&Answers:

About rankhawks

Check Also

Python Django Dev To Deployment

Python Django Dev To Deployment Highest Rated What you’ll learn Learn Python and it’s core …

Machine Learning Practical: 6 Real-World Applications

Description So you know the theory of Machine Learning and know how to create your first algorithms. Now …

Python for Computer Vision with OpenCV and Deep Learning

Description Welcome to the ultimate online course on Python for Computer Vision! This course is your …

Machine Learning A-Z: Become Kaggle Master

Machine Learning A-Z: Become Kaggle Master – Download Udemy Courses For Free | freetutorials.us Please …

Interactive Python Dashboards with Plotly and Dash

Description Welcome to Python Visualization Dashboards with Plotly’s Dash Library! This course will teach your …

Leave a Reply

Your email address will not be published. Required fields are marked *