Michael, On Sat, Nov 14, 2009 at 9:34 PM, Michael Franz <mvfr...@gmail.com> wrote:
> Eric, > > I have encountered this issue before. I am not sure what I did to fix it. > I think I used ecj instead of the Apple javac. Check the javac perl script > that IcedTea has. The other option is to apply this patch in the required > build files. > > > http://cr.openjdk.java.net/~andrew/ecj/01/webrev.01/make/build.xml.udiff.html<http://cr.openjdk.java.net/%7Eandrew/ecj/01/webrev.01/make/build.xml.udiff.html> > > Here is my initial post on this > http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2009-August/006857.html > > If I remember correctly, there is a tool that is compiled by ant (the two > in the output), but it is not compiled with Java 5 byte code. When ant > tries to run the tool you get that error. > > I would switch to using ecj, as you might be able to get past this issue, > there is another issue that will come up and ecj acts differently than javac > and you really need the ecj way of doing things. This is my original email > on this: > > http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2009-August/006879.html > I am using ecj and I checked the build.xml and it does include the properties ${boot.javac.source} and ${boot.javac.target} and I tried changing the build.properties as I think they were set at Java 6 compliance. I will recheck this and try your suggestions. The thing I was confused about is that the ant-diagnostics.log showed the system Java being used. But, I guess the rearranged JDK we use is more for the bootstrapping process. Eric > Michael > > > On Sat, Nov 14, 2009 at 11:48 PM, Eric Richardson > <ekrichard...@gmail.com>wrote: > >> >> -def-pcompile: >> [mkdir] Created dir: >> /Users/eric/openjdk/icedtea/openjdk-boot/build/bsd-ppc/langtools/build/toolclasses >> [javac] Compiling 2 source files to >> /Users/eric/openjdk/icedtea/openjdk-boot/build/bsd-ppc/langtools/build/toolclasses >> >> BUILD FAILED >> /Users/eric/openjdk/icedtea/openjdk-boot/langtools/make/build.xml:603: >> java.lang.UnsupportedClassVersionError: Bad version number in .class file >> >>