<<

Install JDK, and on Mac

1) Install Development Kit: (This will allow you to install and run Eclipse) a. Go to: http://www.oracle.com/technetwork/java/javase/downloads/jdk10-downloads- 4416644. b. Download the Java SE Development Kit for your (MacOS) . Once finished downloading, open the installer and follow the instructions to install the JDK and wait until it finishes installing Note: Please read this website: Overview of JDK 10 and JRE 10 Installation

2) Install XCode: (This will provide C/C++ to Eclipse) There is a very good YouTube video that shows how to install XCode from APP Store. The video is available at https://www.youtube.com/watch?v=g-Lsk7ypjDI Some notes: 1. You need to have apple ID and password. In addition, you may need to use your cell phone to receive a security code whenever you want to login your apple store account. 2. The current stable version XCode is 9.4.1. You should select this version. 3. The video also shows how to use XCode. You may ignore it as we are going to use Eclipse.

3) Set the PATH Environment Variable: You may not need to do anything as the path to run java and gcc is usually setup in the standard system path during the installation. To make sure this, you can open a terminal window and type java -version. If you get the Java version information, then your java is in the standard system path already. If not, you can type command whereis java in the terminal window. After getting this path, you will need to add it to your PATH. (ask for help for doing this.) You can also type gcc command in your terminal window. If you see some error message, then your gcc is Okay. Otherwise, you will see “gcc is not recognized…”. Then you need to find out where is your gcc is located by typing whereis gcc command and then add it in the PATH. (Ask for help for doing this.)

4) Install Eclipse: a. Go to: https://www.eclipse.org/downloads/download.php?file=/oomph/epp/photon//eclipse- inst-mac64.tar.gz b. Download the Eclipse zip file “eclipse-inst-mac64.tar.gz” c. Double click the zip file, then you get the Eclipse installer . Double click the installer and follow the instructions to install the Eclipse. e. Then you can launch eclipse f. Click “Help”  “Install New ” g. A new window pops open, and from the drop down select CDT – http://...... Then click Select All button. Click Next button. Finally click Finish button. h. Now Eclipse is ready for programming with C++.

Note: You can also see this short video for installing Eclipse on Mac. https://www.google.com/search?q=how+to+install+eclipse+on+mac&oq=how+to+install+ecli pse&aqs=chrome.2.69i57j0l5.19457j0j8&sourceid=chrome&ie=UTF-8