You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The driver is correctly at the driver_file_path that is printed
There's a AS400JDBCDriver.class in com\ibm\as400\access in the jar file (opened with 7 zip)
When running, I have
startJVM effectué
Class Path C:\Users...\jt400-20.0.6.jar
hello world
So the path should have been added to the jvm, and java is working...
But I have also
Traceback (most recent call last):
File "org.jpype.JPypeContext.java", line -1, in org.jpype.JPypeContext.callMethod
Exception: Java Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\...\Test_jpype_question.py", line 37, in <module>
cnx = jpype.dbapi2.connect(connection_string, driver= "com.ibm.as400.access.AS400JDBCDriver",
File "C:\...\jpype\dbapi2.py", line 404, in connect
_jpype.JClass('java.lang.Class').forName(driver).newInstance()
java.lang.java.lang.ClassNotFoundException: java.lang.ClassNotFoundException: com.ibm.as400.access.AS400JDBCDriver
I tried lot of things, but I can't understand what's wrong.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I want to use query an IBM AS400 from python.
I downloaded and installed in my forlder IBM's jar (jt400-20.0.6.jar)
Then I run this simple test
The driver is correctly at the driver_file_path that is printed
There's a AS400JDBCDriver.class in com\ibm\as400\access in the jar file (opened with 7 zip)
When running, I have
startJVM effectué
Class Path C:\Users...\jt400-20.0.6.jar
hello world
So the path should have been added to the jvm, and java is working...
But I have also
I tried lot of things, but I can't understand what's wrong.
Beta Was this translation helpful? Give feedback.
All reactions