I am trying to create a Java application with gcj but I get the error below. It has been a while since I used gcj (a year or so), so I may have forgotten something not obvious, but I'm sure I always did it.
multiple definition of `java resource .dummy'
gcj version 4.4.1 on Ubuntu and 4.3.4 on cygwin / windows XP, and I create it using
gcj --main=my.MainClass --classpath=my my/*java
Has anyone seen this or know a workaround without installing an earlier version of gcj. If this is the way to do this, does anyone know how to do this on cygwin or do I need to build it?
Here is a minimal test case that gives this error
public class A { public static void main(String[] args) { System.out.println(new B()); } } public class B { public String toString() { return "Hello"; } } gcj --main=A src/A.java src/B.java
source share