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 #3

Open
ramstein74 opened this issue May 29, 2014 · 1 comment
Open

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

ramstein74 opened this issue May 29, 2014 · 1 comment

Comments

@ramstein74
Copy link

Hello my try app of jt400 is working perfectly.
No i´m trying to use it inside my deployd.com installation.It does not work.

In did this inside my deployd app
npm link string
npm link java
had to install again jt400 because npm link jt400 did not work.

After this and inside my job task (dpd-job) to run every 5 minutes i pasted your example code but...

[Error: Error: Could not find class com.ibm.as400.access.AS400JDBCDriver
java.lang.NoClassDefFoundError: com/ibm/as400/access/AS400JDBCDriver
Caused by: java.lang.ClassNotFoundException: com.ibm.as400.access.AS400JDBCDrive r
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

could it be this line ?
libpath: __dirname + '/node_modules/jt400/lib/jt400.jar', that is causing it?
i replaced _dirname for my app folder because it did not recognize __dirname inside deployd
but still got that error..

@paulomcnally
Copy link
Owner

Try coping tj400 to root path and using __dirname + '/jt400.jar'

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