|
Mark -- Exactly how are you compiling and running this program? Are you typing javac from the command line after STRQSH in order to compile? If so, are you typing java CheckJt400 from the QSH command line in order to run the program? When you're in QSH, can you please type the following and post the output? env Thanks, Gary > ----- Original Message ----- > From: "Mark Abbott" <mabbott@motivaction.com> > To: <java400-l@midrange.com> > Sent: Friday, November 15, 2002 9:25 AM > Subject: Error running on iSeries > > > > Can someone give any insight to why this program will error when > > running > on > > the iSeries after a successful compile through the QShell. > > > > import com.ibm.as400.access.*; > > > > public class CheckJt400 { > > public static void main(String[] args) > > { > > > > System.out.println(AS400.CENTRAL); > > System.out.println(AS400.COMMAND); > > > > *Error Line System.out.println(AS400.getDefaultUser("10.10.1.10")); > > > > System.exit(0); > > } > > } > > > > Output from Qshell: > > > > 6 > > 2 > > java.lang.NoClassDefFoundError: com/ibm/as400/access/AS400 > > java/lang/Throwable.<init>(Ljava/lang/String;)V+4 > (Throwable.java:90) > > CheckJt400.main([Ljava/lang/String;)V+0 (CheckJt400.java:7) > > > > > > Thanks, > > Mark Abbott
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.