compile error

Andrew Haley aph@redhat.com
Wed Nov 6 04:41:00 GMT 2002


Martin Aliger writes:
 > Hi list,
 > 
 > GCJ 3.2 do _not_ compile this correctly:
 > 
 > -----
 > package org.apache.poi.poifs.dev;
 > 
 > public class POIFSViewer
 > {
 > 
 >     public static void main()//final String args[])
 >     {
 >     }
 > }
 > -----
 > 
 > package directive misleads compiler somehow.
 > 
 > when compile into binary, it complains about missing class$ identifier
 > when compile into .class (-C) it compiles OK, but resulting code could not be run with gij (really strange errors even if I copy .class file info ./org/apache/poi/poifs/dev/ directory)

Please show use *exactly* the commands that you use to compile this
file and the resulting compiler output.

Andrew.



More information about the Java mailing list