I don't normally follow the openjdk mailing list, but I see this issue was found back on August 10 with b68. Will IcedTea still plan on using target 5? Or will it be bumping to target 6?<br><br><div class="gmail_quote">
On Tue, Aug 18, 2009 at 2:16 AM, Michael Franz <span dir="ltr"><<a href="mailto:mvfranz@gmail.com">mvfranz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I am building using JDK 1.5 as my default, but configured with JDK 6 (this is on OS X). When the langtools section of the build runs I get a Bad version number in .class file when the custom task 'pcompile' executes. This is because the classes for the task are compile for JDK 6, but then run using JDK 5. The build.properties file has been updated to specify source/target as 5 (from 6) but these are not passed to the javac that compiles the tools. To fix this, either the compilation of the tool needs to specify the target as 5 or the jvm used to execute the tool needs to be the same one used for the rest of the build (in this case 6).<br>
<br>The command line calling ant is:<br>ANT_OPTS=-Djava.io.tmpdir='/Users/mfranz/developer/icedtea/icedtea-1.11-bsd/openjdk-ecj/build/bsd-i586/langtools/build/ant-tmp' ant -Djdk.version=1.7.0_0 -Dfull.version='1.7.0_0-bsd-b66' -Drelease=1.7.0_0 -Dbuild.number=b66 -Djavac.debug=true -Ddebug.classfiles=true -Djavac.target=5 -Djavac.source=5 -Dboot.java.home=/Users/mfranz/developer/icedtea/icedtea-1.11-bsd/bootstrap/jdk1.6.0 -Djavac.executable=/Users/mfranz/developer/icedtea/icedtea-1.11-bsd/bootstrap/jdk1.6.0/bin/javac -Dbuild.dir=/Users/mfranz/developer/icedtea/icedtea-1.11-bsd/openjdk-ecj/build/bsd-i586/langtools/build -Ddist.dir=/Users/mfranz/developer/icedtea/icedtea-1.11-bsd/openjdk-ecj/build/bsd-i586/langtools/dist build<br>
<br>where boot.javac.home is JDK 6.<br><br>So, ant is fired up using JDK 5, but the javac tasks run JDK 6. Is there a way to run the custom tasks using a forked JVM?<br><font color="#888888"><br>Michael<br>
</font></blockquote></div><br>