#1827 Using JDK 7?

dobesv Fri 9 Mar 2012

Any magic required here?

I'm getting close but I've run into this error a few times:

javac: target release 1.5 conflicts with default source release 1.7

Anyone get up and running with JDK 7 and the Fantom build system?

SlimerDude Fri 9 Mar 2012

Java 1.7!?? Fantom or no Fantom, I'm staying far far away from that beast for long as possible!

dobesv Fri 9 Mar 2012

I want to use the Asynchronous I/O stuff they added, it looks like a nice time-saver (both mine and the CPU's).

What is it about JDK 7 you find so beastly?

dobesv Fri 9 Mar 2012

Anyway I found the solution to this and posted it in another thread. Basically the CompileJava task in Fantom is broken for JDK 7 because it specifies -target 1.5 and not -source 1.5 to match. In JDK 1.6 it seemed to take this in stride and apply -source 1.5 for you but in JDK 7 it blows up instead; now if you specify just one it must be -source 1.5. Probably trying to reduce confusion because people probably thought that with -target 1.5 and not -source 1.5 you could somehow use 1.6 features and APIs but still output something that would run on JRE 1.5.

StephenViles Tue 13 Mar 2012

Anyway I found the solution to this and posted it in another thread.

For anyone reading this in the future, the other thread is #1765.

Login or Signup to reply.