compile error
Martin Aliger
martin_aliger@email.cz
Thu Nov 7 02:34:00 GMT 2002
Hi all,
and thanks very much for your time and help! I already successfull compile part of POI! It doesn't work yet, but it is another chapter...
One note about jars:
They are used to resolve imports but they are not compiled to resulting binary. Maybe it is desired behaviour. Ok - but how I add some classes from jar into compile process? When I add foo.jar into gcj command line, it tries to compile all classes! But there could be some which are not needed or classes which does not compile correctly (it was my case - one of classes depends on JRE 1.4). I solve it by source download and include needed classes into my tree, so I workaround this for now
Once more: thanks!
Martin
> --- Původní zpráva ---
> Od: Tom Tromey <tromey@redhat.com>
> Datum: 06.11.2002 18:38:44
>> >>>>> "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
>
______________________________________________________________________________
Email.cz -----> Vaše emailová schránka zdarma.
http://www.Email.cz <------------Pošta zdarma!
More information about the Java
mailing list