I've tried installing Java several times and although the installation is apparently successful when I run
$ java -version
I get
-bash: java: command not found
When I run
$ sudo update-alternatives --config java
I get No alternatives for java. I tried
$ jenv add /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/
and got
/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/ is not a valid path to java installation