Problem with AClass.class

Ryszard Kabatek Ryszard.Kabatek@softax.pl
Mon Apr 29 08:02:00 GMT 2002


Bryce McKinlay wrote:
> 
> Ryszard Kabatek wrote:
> 
> >gcj --main=AClass
> >
> Should it be gcj --main=some.package.AClass ?
> 
> regards
> 
> Bryce.

If I try it (gcj --main=mypackage.AClass) I get:
/tmp/ccjmo6vc.o: In function `main':
/tmp/ccjmo6vc.o(.text+0x1d): undefined reference to `mypackage::AClass::class$'
collect2: ld returned 1 exit status

The reason are the calls of AClass.class.getName();

Regards
-- 
Ryszard Kabatek



More information about the Java mailing list