On Fri, May 30, 2003 at 11:28:18PM +0200, Yann Dirson wrote: > Package: gcj-3.3 > Version: 1:3.3-2 > Severity: normal > > Build log is quite short: > > | tau-2.12.8/tools/src/jRacy$ LC_ALL=C gcj-wrapper-3.3 *.java > | DB.java:9: warning: Discouraged redundant use of `public' modifier in > declaration of abstract method `connect'. > | public boolean connect(DBAcct acct); > | ^ > | DB.java:10: warning: Discouraged redundant use of `public' modifier in > declaration of abstract method `connect'. > | public boolean connect(Connection conn); > | ^ > | DB.java:14: warning: Discouraged redundant use of `public' modifier in > declaration of abstract method `isClosed'. > | public boolean isClosed(); > | ^ > | ./jRacy.java:20: error: Class `jRacy.jRacy' already defined in > jRacy.java:20. > | public class jRacy implements ActionListener > | ^ > | ./jRacy.java:45: confused by earlier errors, bailing out > > > The error seems quite surrealistic... but then I don't know much of > the java language :| > > I suppose the code builds with Sun's JDK at least, or upstream > wouldn't have released :|
It seems to be getting confused because of the classpath. This error goes away if you do this: mizar:[/tmp/tau-2.12.8/tools/src] gcj -C jRacy/*.java instead (note the cwd). Of course, this is doomed to fail anyway because libgcj has no java.awt.*: jRacy/TotalStatWindowPanel.java:14: error: Class or interface `java.awt.font.TextAttribute' not found in import. import java.awt.font.TextAttribute; ^ -- - mdz