I have an issue using Oracle JDK in my laptop that the auto updater successfully update the JDK but the update is not applied on my system. I check my java version using.
$ java -version
But still showing the old version rather than the latest one.
I fix my issue by putting this following line on my bash configuration.
export PATH="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin:$PATH"