× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Mike,

I have been able to replicate this and I am equally stumped. I grabbed and example from http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=/rzahh/exples5.htm and created a .java source member. I used QSH and changed to the directory I copied the source to (/QIBM/ProdData/OS400/Java400/ just to keep it simple) I used javac in QSH to compile and it complained about not finding package: "JDBCPopulate.java:54: package com.ibm.as400.access does not exist DriverManager.registerDriver(new com.ibm.as400.access.AS400JDBCDriver());" So I added a classpath parameter to the compile: javac -classpath '/QIBM/ProdData/Http/Public/jt400/lib/jt400.jar:.' JDBCPopulate.java

That allowed it to compile just fine. Running it however with the following command string generates the error:

java -classpath '/QIBM/ProdData/Http/Public/jt400/lib/jt400.jar:.' JDBCPopulate VAS400 PeteTemp Test
java.lang.NoClassDefFoundError: com/ibm/as400/access/AS400JDBCDriver
       at java.lang.Throwable.<init>(Throwable.java:195)
       at java.lang.Error.<init>(Error.java:49)
at java.lang.NoClassDefFoundError.<init>(NoClassDefFoundError.java:40 )
       at JDBCPopulate.main(JDBCPopulate.java:54)
$

Interesting that the same classpath parameter allows it to compile but doesn't allow it to run.

Since it is a runtime error, I wonder if there is a compatibility issue or an error being thrown that I am not seeing. I JUST put on the latest cume and Java group for V5R3M0 (13). I wonder what the issue is? This should be pretty straight forward. I'll keep playing.

Pete



Smith, Mike wrote:
Yes, I am certain that jt400.jar exists in /QIBM/ProdData/Java400.  I
put it there.  I didn't realize that it already existed in
/QIBM/ProdData/HTTP/Public/jt400/lib

I tried changing my RUNJVA command to the following
RUNJVA CLASS(lockBox.UploadLockBox)
CLASSPATH'/QIBM/ProdData/Java400/:/QIBM/ProdData/Http/Public/jt400/lib/j
t400.jar') PROP((java.version '1.4')) OPTION(*NONE)

Same error java.lang.ClassNotFoundException:
com/ibm/as400/access/AS400JDBCDriver

Very frustrating. Michael Smith
iSeries.mySeries.


-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Dan Feather
Sent: Tuesday, February 13, 2007 1:04 PM
To: Java Programming on and around the iSeries / AS400
Subject: RE: RUNJVA problems


Are you all certain that your jt400.jar file is in
/QIBM/ProdData/Java400?

Only reason I ask is that mine isn't located there on any of our
systems. I find it in /QIBM/ProdData/HTTP/Public/jt400/lib.

Maybe I don't have a symlink you have or something, but I don't find
mine there. Just a thought.

Dan Feather


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.