db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Knut Anders Hatlen <Knut.Hat...@Sun.COM>
Subject Re: Build Report - tinderbox_trunk16 783641 build failed - Sun Database Engineering [Auto-generated mail]
Date Thu, 11 Jun 2009 13:51:47 GMT
Ole.Solberg@Sun.COM writes:

> compile_jdbc4:
>     [javac] Compiling 5 source files to Apache/TinderBox_Derby/trunk/classes
>     [javac] Apache/TinderBox_Derby/trunk/java/engine/org/apache/derby/iapi/jdbc/FailedProperties40.java:27:
cannot access java.util.HashMap
>     [javac] bad class file: /usr/local/java/jdk1.6.0_14-64/jre/lib/alt-rt.jar(java/util/HashMap.class)
>     [javac] class file has wrong version 50.0, should be 49.0
>     [javac] Please remove or make sure it appears in the correct subdirectory of the
classpath.
>     [javac] import java.util.HashMap;
>     [javac]                  ^
>     [javac] 1 error
>
> BUILD FAILED
> Apache/TinderBox_Derby/trunk/build.xml:452: The following error occurred while executing
this line:
> Apache/TinderBox_Derby/trunk/java/engine/build.xml:58: The following error occurred while
executing this line:
> Apache/TinderBox_Derby/trunk/java/engine/org/apache/derby/iapi/build.xml:76: The following
error occurred while executing this line:
> Apache/TinderBox_Derby/trunk/java/engine/org/apache/derby/iapi/jdbc/build.xml:158: Compile
failed; see the compiler error output for details.
>
> Total time: 58 seconds

This appears to be caused by the Tinderbox running ant with JAVA_HOME
pointing to a Java 5 installation, and PropertySetter pointing
java16compile.classpath to a JDK 6u14 installation. Since the class
library in JDK 6u14 installation is compiled with Java 6, the Java 5
compiler isn't able to read the classes in it. This didn't use to be a
problem with earlier releases of JDK 6, probably because they had their
class libraries compiled with -target 1.5.

The solution is to make the Tinderbox build with JAVA_HOME pointing to a
JDK 6 installation, or change its ant.properties file to point j16lib to
an older JDK 6 installation.

-- 
Knut Anders

Mime
View raw message