[Resolved] unsupported major.minor version 52.0

This is a generic issue. I solved it using the fol­low­ing steps.

  • Unin­stall Java completely
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin 
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane 
sudo rm -fr ~/Library/Application\ Support/Java

# Remove Java runtime from the root of your system
cd /Library/
rm -rf Java/
java -version

java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)

You may also like...