I started using Ant, that ships with Eclipse. It annoys me, that I get hundreds of warnings in the lines of:
[javac] warning: java\\io\\BufferedInputStr
Thanks, I figured it out.
For those whom it may concern, to make sure Ant uses the Java 7 compiler:
Preferences -> Ant -> Runtime -> Classpath -> Global Entries
Click Add External Jars and put your tools.jar here.
Add External Jars
tools.jar
It will look something like C:\Program Files\Java\jdk1.7.0_03\lib
C:\Program Files\Java\jdk1.7.0_03\lib