Package: openjdk-7-jdk
Version: 7~u3-2.1.1-3
Severity: important
Dear Maintainer,
javac is completely unusable:
srr@mars:~$ cat /tmp/HelloWorld.java
//import java.io.*;
// This is a simple program called HelloWorld.java
class HelloWorld
{
public static void main(String args[ ]) {
System.out.println( "Welcome to the world of Java" );
}
}
srr@mars:~$ javac /tmp/HelloWorld.java
/tmp/HelloWorld.java:3: cannot access java.lang.Object
bad class file:
/usr/lib/jvm/java-7-openjdk-i386/jre/lib/rt.jar(java/lang/Object.class)
class file has wrong version 51.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the
classpath.
class HelloWorld
^
1 error
srr@mars:~$ javac -version
javac 1.7.0_03
javac: no source files
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are
used
-classpath <path> Specify where to find user class files
-cp <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-3-686-pae (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages openjdk-7-jdk depends on:
ii libc6 2.13-33
ii libx11-6 2:1.5.0-1
ii openjdk-7-jre 7~u3-2.1.1-3
ii zlib1g 1:1.2.7.dfsg-13
Versions of packages openjdk-7-jdk recommends:
ii libxt-dev 1:1.1.3-1
Versions of packages openjdk-7-jdk suggests:
pn openjdk-7-demo <none>
ii openjdk-7-source 7~u3-2.1.1-1
pn visualvm <none>
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]