I am on a Mac. My current Java
version is "1.6.0_65". Therefore i want to upgrade it to the latest. I typed the following command on my Mac terminal
.
sudo apt-get install oracle-java7-installer
The error i got is sudo: apt-get: command not found
. Then i tried using yum
command instead. and the error i got it sudo: yum: command not found
.
1.) Is there a way to install apt-get
and yum
on Mac, if so how?
2.) What is the command to upgrade Java using a Mac?