well I have java 8 45 and when I go into terminal and do java -version it says this
"java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)"
But when I go to the java panel it tells me I have the latest version which is java 8 45. And I need to get this working asap because one of my minecraft server plugins needs java 8 and its not working. Can anyone help me with this problem thanks!