I have set all my paths but i encounter this problem when running an eclipse project.
Can someone help me out.
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.. :)