Package: gcj-4.1 Version: 4.1.0-2j1 Severity: important *** Please type your report below this line ***
GCJ fails with Can't find default package 'core'. ... when a class source file specifies `import core.*'. A full example is outlined below. 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"); } } 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. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16-1-686 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages gcj-4.1 depends on: ii gcc-4.1 4.1.0-4 The GNU C compiler ii gcj-4.1-base 4.1.0-2j1 The GNU Compiler Collection (gcj b ii gij-4.1 4.1.0-2j1 The GNU Java bytecode interpreter ii java-common 0.25 Base of all Java packages ii libc6 2.3.6-11 GNU C Library: Shared libraries ii libc6-dev 2.3.6-11 GNU C Library: Development Librari ii libgcc1 1:4.1.0-4 GCC support library ii libgcj7-dev 4.1.0-2j1 Java development headers and stati ii libgcj7-jar 4.1.0-2j1 Java runtime library for use with ii zlib1g 1:1.2.3-11 compression library - runtime Versions of packages gcj-4.1 recommends: ii fastjar 1:4.1.0-4 Jar creation utility -- no debconf information -- ___ | Christian Holm Christensen |_| | ------------------------------------------------------------- | | Address: Sankt Hansgade 23, 1. th. Phone: (+45) 35 35 96 91 _| DK-2200 Copenhagen N Cell: (+45) 24 61 85 91 _| Denmark Office: (+45) 353 25 404 ____| Email: [EMAIL PROTECTED] Web: www.nbi.dk/~cholm | | -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]