Build Failed Ant: Class not found: javac1.8

I have set all my paths but i encounter this problem when running an eclipse project. Can someone help me out. ant: class javac not found: javac1.8

Well, it occurs because of version is less than 1.9.0 Have a look on this:

http://stackoverflow.com/questions/20702626/javac1-8-class-not-found

Hope it works.. :)