compile error

Tom Tromey
Wed Nov 6 09:38:00 GMT 2002

>>>>> "Martin" == Martin Aliger <> writes:

Martin> package;
Martin> [alik@explorer poic]$ gcj --main=POIFSViewer 

The argument of `--main' is the fully-qualified class name.
Try `'.

Martin> [alik@explorer poic]$ gij POIFSViewer 
Martin> Exception in thread "main" java.lang.NoClassDefFoundError: loaded class POIFSViewer was in fact named


Martin> when I copy POIFSViewer.class file into
Martin> org/apache/poi/poifs/dev/POIFSViewer.class

This is an important step, but...

Martin> [alik@explorer poic]$ gij org/apache/poi/poifs/dev/POIFSViewer       

You still need the fully-qualified class name.
Use `.' and not `/'.

Martin> Hope it helps. That error stops me from any further work on
Martin> POI project ;-(

You should be able to start again now.


More information about the Java mailing list