This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: compile error
- From: Tom Tromey <tromey at redhat dot com>
- To: <martin_aliger at email dot cz>
- Cc: <java at gcc dot gnu dot org>, <aph at redhat dot com>
- Date: 06 Nov 2002 10:31:43 -0700
- Subject: Re: compile error
- References: <3DC9511E.000001.08022@email1.atc.cz>
- Reply-to: tromey at redhat dot com
>>>>> "Martin" == Martin Aliger <martin_aliger@email.cz> writes:
Martin> package org.apache.poi.poifs.dev;
Martin> [alik@explorer poic]$ gcj --main=POIFSViewer POIFSViewer.java
The argument of `--main' is the fully-qualified class name.
Try `--main=org.apache.poi.poifs.dev.POIFSViewer'.
Martin> [alik@explorer poic]$ gij POIFSViewer
Martin> Exception in thread "main" java.lang.NoClassDefFoundError: loaded class POIFSViewer was in fact named org.apache.poi.poifs.dev.POIFSViewer
Likewise.
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.
Tom