|
Wanda, I had a similar problem. The response from Blair helped me out: If you're running V4R3 try the last command indicated in QSH: >So, for the CLASSPATH example, you could use: > export CLASSPATH=/some/dir:/some/other/dir/with/maybe.jar > >NOTE: If I remember correctly, in V4R3 you had to specify the -s >parameter on the 'export' statement, due to some implementation details >unique to Java/QShell interactions. So, you'd need to use: > export -s CLASSPATH=/QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar But check before if the .jar file is in the correct location. Marco van Maris Nick_Vrtis@amway.com on 05/05/2000 15:04:03 Please respond to JAVA400-L@midrange.com To: JAVA400-L@midrange.com cc: (bcc: Marco Van Maris/EPT) Subject: RE: record-level access Wanda, I always use the jt400.jar file instead of the zip file. The message you are getting is sort of strange. It's looking for AS400 in a package called jt400. So that would mean it's looking for a file called AS400.class in a directory jt400. Can you cut and paste the whole Java program into a note and send it out. As Don points out, Java is VERY case sensitative.... Nick Don Strickland <dstrickland@800.com>@midrange.com on 05/04/2000 05:15:48 PM Please respond to JAVA400-L@midrange.com Sent by: owner-java400-l@midrange.com To: "'JAVA400-L@midrange.com'" <JAVA400-L@midrange.com> cc: Subject: RE: record-level access Caps? Try As400(...) and as400(...) -----Original Message----- From: Cummings, Wanda [mailto:Cummings@AE.com] Sent: Thursday, May 04, 2000 1:38 PM To: 'JAVA400-L@midrange.com' Subject: RE: record-level access i tried that --- thanks for responding, i am still getting the type declaration error.......it appears to not be able to find AS400.class, but i dont know why......very frustrating learning something new > -----Original Message----- > From: Shailaja_Rao@countrywide.com [SMTP:Shailaja_Rao@countrywide.com] > Sent: Thursday, May 04, 2000 3:30 PM > To: JAVA400-L@midrange.com > Subject: Re: record-level access > > > > Does it work if you specify *LOCAL? > > > > > > "Cummings, Wanda" <Cummings@AE.com>@midrange.com on 05/04/2000 10:42:37 AM > > Please respond to JAVA400-L@midrange.com > > Sent by: owner-java400-l@midrange.com > > > To: "'JAVA400-L@midrange.com'" <JAVA400-L@midrange.com> > cc: > > Subject: record-level access > > > I am having trouble with the following statement in my java program: i am > trying to use the record-level to access an AS400 file. > > // Step 1: > // Connect to an AS/400 > as400 = new AS400("localhost"); > > when i compile the java program in QSH, i get the error > > > $ > > > javac /myjava/ListRecord.java > > /myjava/ListRecord.java:13: Class jt400.AS400 not found in type > declaration. > as400 = new AS400("localhost"); > > ^ > > 1 error > > $ > > > i did the following addenvvar before the compile: > > Current QSH session ended. > ADDENVVAR ENVVAR(classpath) VALUE ('/QIBM/ProdData/HTTP/Public/jt400/lib/j > t400.zip') > (the AS400.class is in the jt400.zip file) > > i am not sure about this import statement in my java program: > import com.ibm.as400.access.*; > > when i look in the access folder, it is empty.......should there be > something in access? zip files or jar files for the AS400.class... > > any help would be appreciated....this is my first attempt of a java > program > on the as400, accessing an as400 file > > wanda cummings > cummings@ae.com > > > > +--- > | This is the JAVA/400 Mailing List! > | To submit a new message, send your mail to JAVA400-L@midrange.com. > | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. > | To unsubscribe from this list send email to > JAVA400-L-UNSUB@midrange.com. > | Questions should be directed to the list owner: joe@zappie.net > +--- > > > > +--- > | This is the JAVA/400 Mailing List! > | To submit a new message, send your mail to JAVA400-L@midrange.com. > | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. > | To unsubscribe from this list send email to > JAVA400-L-UNSUB@midrange.com. > | Questions should be directed to the list owner: joe@zappie.net > +--- +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +--- +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +--- +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +--- +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +---
As an Amazon Associate we earn from qualifying purchases.
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.