I originally encountered this problem when trying to run maxent from ENMTools; but it turns out it was a combination of problem with the dismo package, and with my Mac machine having different versions of java installed (1.6 and 1.8).
I am pasting the solution that worked for me below, and to other relevant lists if I find them, since I didn't find a direct answer online.
Thanks - Nick