|
Pete / Mike,
Thought I'd try too to throw some additional version numbers in the mix for
you. On our dev system with:
Open Source Software, JTOpen 4.8, codebase 5722-JC1 V5R3M0.9
SF99530 5298 Not installed
SF99529 67 Not installed
SF99519 102 Installed
SF99503 8 Installed
SF99502 14 Not applicable
SF99314 1 Installed
SF99301 12 Installed
SF99295 7 Installed
SF99290 2 Installed
SF99269 9 Installed
SF99173 3 Installed
SF99169 17 Not applicable
SF99149 9 Installed
I also get the ClassNotFoundException error when trying to run it with:
RUNJVA CLASS(lockBox.UploadLockBox)
CLASSPATH('/QIBM/ProdData/Java400/:/QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar')
PROP((java.version '1.4')) OPTION(*NONE)
Someone else (sorry, don't remember who to give credit) posted that there
is a special classloader for /QIBM/ProdData/Java400/ and this sounded crazy
enough to be plausible, so I tried moving the classes elsewhere, and then
it works fine (well, I get "connection refused" but clearly to have gotten
this far it has loaded the JDBC drivers in fine), i.e. I had the .class
files in /CpaJavaDevelopment/lockBox:
RUNJVA CLASS(lockBox.UploadLockBox)
CLASSPATH('/CpaJavaDevelopment/:/QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar')
PROP((java.version '1.4')) OPTION(*NONE)
Personally my 2 cents though is not to be exporting individual class files.
By the time you get hundereds of class files this must become an
administrative nightmare when it comes to releasing classes from your dev
to production systems and getting the folder structure correct. Run them
as a JAR file - I think you mentioned you're using WSAD/WDSC and this makes
it so easy (File -> Export -> JAR file). Then you've just got one file,
you can stick it wherever you like and can use whatever folder structure
you like. I even tried it in /QIBM/ProdData/Java400/ and this worked fine:
RUNJVA CLASS(lockBox.UploadLockBox)
CLASSPATH('/QIBM/ProdData/Java400/LockBox.jar:/QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar')
PROP((java.version '1.4')) OPTION(*NONE)
Hope this helps,
Nigel Gay,
Computer Patent Annuities Limited.
java400-l-bounces+ngay=cpaglobal.com@xxxxxxxxxxxx wrote on 14/02/2007
04:40:55 PM:
Mike, There are a few variables going here and I am not sure what the key is. My customer's System i is at V5R3M0 and the Java Group PTF is at level 12. The toolbox shows: Open Source Software, JTOpen 5.1.1, codebase 5722-JC1 V5R4M0.2 The example I provided that uses the AS400JDBCDriver works on this box. My 270 which is also at V5R3M0 and Java Group Level 13 (lucky?) has the following toolbox level: Open Source Software, JTOpen 5.2, codebase 5722-JC1 V5R4M0.3 The example DOESN"T run on this box. I get the same error as you do. I may try the same jt400.jar as my customer has and see if that works on my box. Pete Smith, Mike wrote:So if this works. RUNJVA CLASS(utilities.AS400JDBCDriver) CLASSPATH('/QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar') And although this doesn't run- it finds it RUNJVA CLASS(com.ibm.as400.access.AS400JDBCDriver) CLASSPATH('/QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar') It would seem that my problem is maybe in my syntax of the my
classpath.
Could that be the problem? RUNJVA CLASS(lockBox.UploadLockBox)
CLASSPATH('/QIBM/ProdData/Java400/:QIBM/ProdData/HTTP/Public/jt400/lib/j
t400.jar') PROP((java.version '1.4')) OPTION(*NONE) Because when I use the above I still get java.lang.ClassNotFoundException: com/ibm/as400/access/AS400JDBCDriver Michael Smith iSeries.mySeries.-- This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.
******************************************************************************** The information in this message is confidential and may be legally privileged. It is intended solely for the addressee; access to this email by anyone else is unauthorised. If you are not the intended recipient: (1) you are kindly requested to return a copy of this message to the sender indicating that you have received it in error, and to destroy the received copy; and (2) any disclosure or distribution of this message, as well as any action taken or omitted to be taken in reliance on its content, is prohibited and may be unlawful. ********************************************************************************
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.