Bug#401948: ecj-bootstrap: The import java.util.Scanner cannot be
resolved
Jhair Tocancipa Triana
jhair.tocancipa at gmail.com
Thu Dec 7 00:21:00 UTC 2006
Package: ecj-bootstrap
Version: 3.2.1-3
Severity: normal
The following program compiles fine with
/usr/lib/jvm/java-1.5.0-sun/bin/javac
--8<---------------cut here---------------start------------->8---
import java.util.Scanner;
class TestScanner
{
public static void main(String[] args)
{
System.out.println ("hi");
}
}
--8<---------------cut here---------------end--------------->8---
But the eclipse compiler says,
(debian-unstable)jtocancipa at golem:~/tmp$ /usr/bin/ecj-bootstrap TestScanner.java
----------
1. ERROR in TestScanner.java (at line 1)
import java.util.Scanner;
^^^^^^^^^^^^^^^^^
The import java.util.Scanner cannot be resolved
----------
The eclipse compiler should be fixed to compile the program.
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18.1
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15)
Versions of packages ecj-bootstrap depends on:
ii gij-4.1 4.1.1-20 The GNU Java bytecode interpreter
ii java-common 0.25 Base of all Java packages
ii libgcj7-jar 4.1.1-20 Java runtime library for use with
Versions of packages ecj-bootstrap recommends:
pn ecj-bootstrap-gcj <none> (no description available)
-- no debconf information
--
-- Jhair
More information about the pkg-java-maintainers
mailing list