Why I have 3 different Java versions on my Mac? today I was looking after my Java Version and I got very confused. I found three different ones:


If I look in Webstorm it uses: 1.6.0_65
If I make java -version I get: 1.7.0_45
If I look in the system settings I get: 1.8.0_45


What can I do to just have system wide ONE Java version which will be the version which I update via my system settings: 1.8.0_45?
Different applications will link to different Java libraries. Older apps will most likely require Java 6 (1.6.0_65), whereas newer apps will link to newer builds of Java respectively.

By way of example, I know that the Mobile Connect app for my old Huawei 3G modem requires Java 6 to be installed, Adobe Photoshop CS6 requires Java 7 (IIRC) and your browsers will most likely request you to run the latest Java, which is Java 8.