Revision 1236803 (in 1.8.3) added some JDK 8 support. Unfortunately running <javac> by default fails with this error: Class not found: javac1.8 Workaround is to pass -Dbuild.compiler=javac1.7.
Committed revision 1345316.
Apache Ant(TM) version 1.9.2 compiled on July 8 2013 javac 1.8.0_40 java.exe -version java version "1.8.0_40" Java(TM) SE Runtime Environment (build 1.8.0_40-b26) Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode) Not fixed ..ANT does not work with JDK 1.8 M-
Created attachment 32680 [details] Java8-Sample: Sourcecode
Created attachment 32681 [details] Java8-Sample: Buildfile I did an example which works for me. Ant: 1.9.4 Java: 1.8.0-ea (I know, I should update ....) Buildfile: C:\temp\ant-test\build.xml [delete] Deleting directory C:\temp\ant-test\build [mkdir] Created dir: C:\temp\ant-test\build\classes [echo] Java-Home: C:\seu\jdk1.8.0_b87\jre [echo] Java-Version: 1.8.0-ea [javac] Compiling 1 source file to C:\temp\ant-test\build\classes --> wait for the swing gui --> and click on the button [java] Click Detected by Lambda Listner [java] Click Detected by Anon Class BUILD SUCCESSFUL Total time: 7 seconds