|
The error messages are not very reliable. -----Original Message----- From: Chris Hanisch [mailto:chanisch@motivaction.com] Sent: Friday, November 15, 2002 8:39 AM To: 'java400-l@midrange.com' Subject: RE: Error running on iSeries In the Javadoc the getUser method is static, so we shouldn't have to create an instance. Just like Math.round() What is really confusing is that normally if the classpath is wrong, it won;t successfully compile. But we seem to get a successfully compile. We get a noclassdef found error when running this. -----Original Message----- From: Mike Silvers [mailto:msilvers@HBS-INC.COM] Sent: Friday, November 15, 2002 8:43 AM To: java400-l@midrange.com Subject: Re: Error running on iSeries You did not create the AS400 object yet.... The AS400.CENTRAL and AS400.COMMAND are constant values. The .getUser() method is an instance method. You need to create the AS400 object (something like): AS400 as400 = new AS400("10.10.1.10"); as400.getDefaultUser(); I do not have the JavaDoc for AS400 infront of me, so the params might nor be correct.... Mike ----- 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 > > > > _______________________________________________ > This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list > To post a message email: JAVA400-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l > or email: JAVA400-L-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/java400-l. > > _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l or email: JAVA400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l. _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l or email: JAVA400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.
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.