You are on page 1of 15

Installation

of Eclipse &
Tomcat for
Mac OSX
Yosemite
CSC 395
FVCproductions
January 21, 2015

CSC 395 - FVCPRODUCTIONS

Eclipse
(1)

Head over to the Downloads section of the Eclipse website: https://


www.eclipse.org/downloads/

(2)

Download the Eclipse IDE for Java EE Developers Mac OS X 64 bit


which is the version we will need in order to run the Apache Tomcat
server within Eclipse

!
(3)

Unzip the file within your Downloads folder.

(4)

Move this unzipped folder to your Applications folder.

CSC 395 - FVCPRODUCTIONS

(5)

Eclipse is now installed as an application and can be accessed from


your Launchpad.

!
(6)

Any other remaining files can be removed from your Downloads


folder.

CSC 395 - FVCPRODUCTIONS

Tomcat 8.0.17
(1)

Head over to the Downloads section of the Apache Tomcat website


for Tomcat version 8.0.17: http://tomcat.apache.org/
download-80.cgi

(2)

Download the tar.gz file under Binary Distributions Core.

!
(3)

Unzip the file within your Downloads folder.

!
CSC 395 - FVCPRODUCTIONS

(4)

Move this folder from the unzip to your Library folder, which can be
found under ~/Library using the Go to Folder in Finders menubar.

(5)

Rename this folder to Tomcat.

!
(6)

You now have Apache Tomcat installed.

(7)

Any other remaining files can be removed from your Downloads


folder.

CSC 395 - FVCPRODUCTIONS

Setting up Eclipse To Work


with Tomcat
(1)

Open up your Eclipse application from Launchpad or Finder.

(2)

Go to File New Other Web Dynamic Web Project

!
CSC 395 - FVCPRODUCTIONS

(3)

Press Next

(4)

Call your new Dynamic Web Project anything. I called mine


HelloWorld.

!
CSC 395 - FVCPRODUCTIONS

(5)

Under Target runtime, click the button New Runtime

(6)

Go to Apache Apache Tomcat v8.0

!
(7)

Press Next

(8)

Under Tomcat Installation Directory, click the button Browse

CSC 395 - FVCPRODUCTIONS

!
(9)

This is where you will use Finder to set up the directory to /Users/
<username>/Library/Tomcat. My directory would be /Users/
fvcproductions/Library/Tomcat

CSC 395 - FVCPRODUCTIONS

!
(10) If you do not have the Tomcat folder set up yet then please refer to
Step 5 of the Tomcat 8.0.17 Installation Guide.
(11) Press Finish
(12) Press Finish again to finalize setting up your project and confirm that
the Target runtime is set up to Apache Tomcat 8.0
(13) Under the HelloWorld folder, go to the Web Content folder, right click
and select New JSP File

CSC 395 - FVCPRODUCTIONS

10

!
CSC 395 - FVCPRODUCTIONS

11

(14) You can call this file index.jsp


(15) Press Finish
(16) In the index.jsp file, you can go ahead and rename the <title> to
whatever you want. I just made the Yo. In the <body> you can also
add a header or paragraph. I inserted a paragraph with the text
Carbon Based Human.

!
(17) Save your file.
(18) Go back to your HelloWorld project folder, right click, and go to Run
As Run on Server

CSC 395 - FVCPRODUCTIONS

12

!
(19) Select the existing server set up from Step 13 called Tomcat v8.0 Server
at localhost

CSC 395 - FVCPRODUCTIONS

13

!
(20) Press Finish

CSC 395 - FVCPRODUCTIONS

14

(21) A new tab will pop up in Eclipse where you see the title you set up in
index.jsp. In my case, the tab has the title Yo

!
(22) You have now set up a very basic dynamic web project on Eclipse
using Apache Tomcat 8.0

CSC 395 - FVCPRODUCTIONS

15