db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Embretsen <John.Embret...@Sun.COM>
Subject Re: How to run exist junit tests after build the trunk
Date Fri, 29 Jun 2007 09:02:34 GMT
Daniel John Debrunner wrote:
> John Embretsen wrote: (Thu, 21 Jun 2007 07:50:19 GMT)
> 
>> Sean Qiu wrote:
>>> Btw, can ${j14lib} points to jdk whose version is higher? like jdk1.5.
>>
>> No, the build will most likely fail if it does.
> 
> I'm able to build using IBM's 1.5 SDK with no problems.

Then perhaps I'm doing something wrong? If I set j14lib in my ant.properties 
file to /usr/local/java/jdk1.5/jre/lib (Sun JDK 1.5.0_07), the build fails with 
wrong class file version.


     [javac] bad class file: 
/usr/local/java/jdk1.5/jre/lib/rt.jar(java/lang/Object.class)
     [javac] class file has wrong version 49.0, should be 48.0
     [javac] Please remove or make sure it appears in the correct subdirectory 
of the classpath.
     [javac]     public static String getSQLStateFromIdentifier(String messageID) {
     [javac]                                                        ^
     [javac] 1 error

BUILD FAILED


-- 
John


Mime
View raw message