[JAVA] Install tomcat + eclipse on mac

Notes on installing tomcat and eclipse on macbook pro

Tomcat installation

Download and install tomcat 9 https://tomcat.apache.org/download-90.cgi Unpack and place in / Applications / tomcat

/Applications/tomcat/apache-tomcat-9.0.14

eclipse installation

eclipse official website https://www.eclipse.org/downloads/packages/release/2018-12/r Download Mac Cocoa 64-bit from Eclipse IDE for Java Developers スクリーンショット 2018-12-31 18.15.53.png After unpacking, move to Application folder

Tomcat plugin installation

Search by "tomcat" from [Help]-[Eclisep Marketplace] Install Eclipse Tomcat Plugin 9.1.3 スクリーンショット 2018-12-31 16.20.20.png

eclipse tomcat preferences

Set the Tomcat version and installation directory from [Preferences]-[tomcat] スクリーンショット 2018-12-31 16.23.13.png

Operation check

First check if the plugin is working Try starting and stopping tomcat from the eclipse menu スクリーンショット 2018-12-31 16.25.15.png

After launching, make sure you can see the tomcat sample page at http: // localhost: 8080 スクリーンショット 2018-12-31 16.27.43.png

Project creation

Try creating a tomcat project

Create with an appropriate name from [File]-[New]-[Project]-[Tomcat project] スクリーンショット 2018-12-31 16.30.31.png

After creating, make sure that the configuration file for localhost is created in the conf folder. スクリーンショット 2018-12-31 16.32.45.png

Create index.jsp directly under the project スクリーンショット 2018-12-31 16.37.45.png

<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page import="java.util.Calendar"%>
<%@ page import="java.text.SimpleDateFormat"%>

<%
Calendar calendar = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
String today = "ToDay" + sdf.format(calendar.getTime()) + "is";
%>
<%=today%>

Access from a browser and check

スクリーンショット 2018-12-31 16.38.56.png

Also make sure you can create a class or Servlet to do a Tomcat hot deploy

Recommended Posts

Install tomcat + eclipse on mac
Install gradle on mac
Install Java on Mac
How to install Eclipse (Photon) on Mac
Install OpenJDK 8 on mac
Install tomcat on Sakura's VPS
Install tomcat plugin in eclipse
Install Eclipse on Mac and translate it into Japanese
Use completion in Eclipse on mac
Install Java development environment on Mac
[For beginners] Install JDK + Eclipse on Mac (without Pleiades All-in-One)
JSP on tomcat
I can't install rails on my mac
Relative path when running tomcat on eclipse
Download and install Eclipse (Java) (Mac version)
Build Apache + Tomcat + Pebble locally on Mac
Steps to install Maven on Mac and use it in Eclipse
Open multiple workspaces in Eclipse on Mac
Install java and android-sdk on Mac using homebrew
Install Ruby / Rails on Mac M1 Big Sur 2021-01
Install SonarQube on Mac and challenge source analysis
Install Java, Apache, Tomcat9 on EC2 (Amazon Linux2)
Introducing Eclipse IoT-Part2: Install Eclipse Neon.2 on macOS Sierra
Run STS4 on Mac
Install OpenJDK on macOS
Install Golang on CentOS 8
Install pyqt5 on ubuntu
Install Neo4j 4.1.3 on centOS
Tomcat v8 on CentOS7
Install Vertica 10.0 on CentOS 6.10
Mac Rails Install Error
Install PostgreSQL 12 on Centos8
Install nginx on centOS7
Install Python 3 on CentOS 7
Install Autoware on Ubuntu 18.04.5
Install Mattermost on CentOS 7
Install PostGIS 2.5.5 on CentOS7
Install Homebrew on Ubuntu 20.04
1002 error on tomcat + webSocket
Install Redmine 4.1.1 on CentOS 7
Smokeping Install on CentOS7
Install PostgreSQL 13 on CentOS 7.5
[Ruby] I can't install puma on Mac [Rails, etc.]
Install java and maven using brew on new mac
Until building Spring-Boot using Eclipse on Mac (Gradle version)
I struggled with pip install on an M1 Mac
Install Java / Tomcat / PostgreSQL without polluting your Mac environment
Install ag (the silver searcher) [on CentOS / Ubuntu / Mac]
Install Docker on Raspberry Pi
Install Docker on Windows 10 PRO
Install Docker on Ubuntu Server 20.04
Install Sidekiq pro on Rails
Note when pip install mysqlclient cannot be installed on Mac
Install rbenv on Amazon Linux
Install zabbix agent (5.0) on Ubuntu 18.04
Notes on installing eclipse with Homebrew on Mac OS High Sierra
Install the plugin in Eclipse
Eclipse shortcut keys (Windows, Mac)
Install OpenFOAM v2006 on CentOS
Install Arudino IDE on Ubuntu 20
Install Jenkins on Docker's CentOS