Just FYI - "java -version" is depreciated, since Apple no longer supplies Java as of 1.7. My 1st suggestion was simply to download and re-install, but you've already done that. I would use the PC post ...
Oracle released patches for 98 security issues across a wide range of products, including 14 in Java. This marks the last free patch for Java 7, and users are being encouraged to upgrade to version 8.