: MIDRANGE dot COM Mailing List Archive

Newbee problem running java program


  • Subject: Newbee problem running java program
  • From: "Tom Tufankjian" <Tom_Tufankjian@xxxxxxxxx>
  • Date: Fri, 2 Mar 2001 09:46:55 -0500
AddThis Feed Button





I am very new at java and I've written a program that works in the Visual
Age environment.  However when I export my .class and .java files to a
folder on the IFS and attempt to run the program on the AS400, I get the
following:

java.lang.NoClassDefFoundError: TestListing
      java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:81)
Java program completed with exit code 1

1.  Where can I find out what this means?
2.  Does it have something to do with classpath?  I am very weak in this
area.
3.  How can I fix this problem?

The folder on the IFS is /myjava/bud.   Bud is the package name and it's
referenced in the classes.
The classes are TestListing and PrintTheReport.  TestListing just creates
an instance of PrintTheReport to run it.

What the program does is to read a file on the AS400 and print a listing of
it on System.out.   Nothing fancy.

Any help will be greatly appreciated!

Thanks!




+---
| 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
+---



Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2007 by MIDRANGE dot 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 here. If you have questions about this, please contact

.

counter