diff --git a/build.xml b/build.xml
index f763f02ec..4258db57c 100644
--- a/build.xml
+++ b/build.xml
@@ -371,8 +371,6 @@
   <target name="compile" depends="-setup"
           description="Compile all Java source">
     <javac classpathref="compile.path"
-           source="${compatibility}"
-           target="${compatibility}"
            destdir="${classes}"
            includeantruntime="false"
            deprecation="on" 
@@ -975,8 +973,6 @@ osname=macosx;processor=x86;processor=x86-64;processor=ppc
           description="Compile test code which does not have additional native
                        dependencies">
     <javac classpathref="compile-test.path"
-           source="${test.compatibility}"
-           target="${test.compatibility}"
            destdir="${test.classes}"
            includeantruntime="false"
            includes="**/StructureFieldOrderInspector.java"
@@ -991,8 +987,6 @@ osname=macosx;processor=x86;processor=x86-64;processor=ppc
   <target name="compile-tests" depends="compile,native,jar"
   	description="Compile all test code">
     <javac classpathref="compile-test.path"
-           source="${test.compatibility}"
-           target="${test.compatibility}"
            destdir="${test.classes}"
            includeantruntime="false"
            excludes="${tests.exclude-patterns}"
