[forwarded from http://bugs.debian.org/369873]
GCJ fails with Can't find default package 'core'. ... when a class source file specifies `import core.*'. A full example is outlined below. If you try to compile this `project' like gcj -d . src/Main.java src/core/Foo.java the above mentioned error is reported. The same project works fine with Sun's or Blackdown's Java compiler. Suppose we have the directory structure > find . ./src ./src/core ./src/core/Foo.java ./src/Main.java with the following contents of `src/Main.java': // commenting out this line makes the classes compile. import core.*; public class Main { public Main() { core.Foo foo = new core.Foo(); foo.print(); } public static void main(String args[]) { Main m = new Main(); } } and the following contents of `src/core/Foo.java': package core; public class Foo { public Foo() {} public void print() { System.out.println("Hello, world"); } } -- Summary: fails to import package from project Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: debian-gcc at lists dot debian dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29194