Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find class com.ibm.as400.access.AS400JDBCDriver #225

Open
devavanza opened this issue Sep 16, 2021 · 1 comment
Open

Could not find class com.ibm.as400.access.AS400JDBCDriver #225

devavanza opened this issue Sep 16, 2021 · 1 comment

Comments

@devavanza
Copy link

When initializing the JDBC constructor for db2 instance i got this error. please help me in this error i got stuck for a while

jdbc_error

@tonioss22
Copy link

tonioss22 commented Dec 30, 2021

I don't know if you still need an answer to this issue but i think i know how to fix your error.

a picture of the error would be easier but i assume you do not have the driver installed for ibm AS400. Simply download the jt400.jar Here is the file you are looking for. Once this is downloaded, open it and copy the file named jt400.jar in the lib folder to a folder on your project called drivers

Then add this to your code:

var jinst = require("jdbc/lib/jinst");

if (!jinst.isJvmCreated()) {
  jinst.addOption("-Xrs");

  jinst.setupClasspath(["./drivers/jt400.jar"]);
}

This should fix your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants