Just to make this post complete, because I had the same problem.
The full path name should be: /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/bin
I added the bin folder and it worked for me (in my case I used jdk.1.7.0_55.jdk but that's besides the point)