eclipse & tomcat installation for yosemite

Upload: fvcproductions

Post on 01-Jun-2018

228 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/9/2019 Eclipse & Tomcat Installation for Yosemite

    1/15

    CSC 395 - FVCPRODUCTIONS 

    1

    Installationof clipse &

    omcat forMac OSX

    Yosemite 

    CSC 395

    FVCproductions

    January 21, 2015

  • 8/9/2019 Eclipse & Tomcat Installation for Yosemite

    2/15

    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 

    2

    https://www.eclipse.org/downloads/

  • 8/9/2019 Eclipse & Tomcat Installation for Yosemite

    3/15

    (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 

    3

  • 8/9/2019 Eclipse & Tomcat Installation for Yosemite

    4/15

    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

    http://tomcat.apache.org/download-80.cgi

  • 8/9/2019 Eclipse & Tomcat Installation for Yosemite

    5/15

    (4) Move this folder from the unzip to your Library folder, which can be

    found under ~/Library using the Go to Folder in Finder’s 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 

    5

  • 8/9/2019 Eclipse & Tomcat Installation for Yosemite

    6/15

    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 

    6

  • 8/9/2019 Eclipse & Tomcat Installation for Yosemite

    7/15

    (3) Press Next

    (4) Call your new Dynamic Web Project anything. I called mine

    HelloWorld.

     

    CSC 395 - FVCPRODUCTIONS 

    7

  • 8/9/2019 Eclipse & Tomcat Installation for Yosemite

    8/15

    (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 

    8

  • 8/9/2019 Eclipse & Tomcat Installation for Yosemite

    9/15

     

    (9) This is where you will use Finder to set up the directory to /Users/ 

    /Library/Tomcat. My directory would be /Users/ 

     fvcproductions/Library/Tomcat

    CSC 395 - FVCPRODUCTIONS 

    9

  • 8/9/2019 Eclipse & Tomcat Installation for Yosemite

    10/15

     

    (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

  • 8/9/2019 Eclipse & Tomcat Installation for Yosemite

    11/15

     

    CSC 395 - FVCPRODUCTIONS 

    11

  • 8/9/2019 Eclipse & Tomcat Installation for Yosemite

    12/15

    (14) You can call this file index.jsp

    (15) Press Finish

    (16) In the index.jsp file, you can go ahead and rename the  to

    whatever you want. I just made the Yo. In the  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

  • 8/9/2019 Eclipse & Tomcat Installation for Yosemite

    13/15

     

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

    at localhost

    CSC 395 - FVCPRODUCTIONS 

    13

  • 8/9/2019 Eclipse & Tomcat Installation for Yosemite

    14/15

     

    (20) Press Finish

    CSC 395 - FVCPRODUCTIONS 

    14

  • 8/9/2019 Eclipse & Tomcat Installation for Yosemite

    15/15

    (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