아래 사이트 접속
Apache Tomcat® - Apache Tomcat 10 Software Downloads
Welcome to the Apache Tomcat® 10.x software download page. This page provides download links for obtaining the latest version of Tomcat 10.1.x software, as well as links to the archives of older releases. Unsure which version you need? Specification versi
tomcat.apache.org
Download아래 버전 클릭

클릭해서 압축파일 다운로드

다운로드된 압축파일 풀기

cmd(명령 프롬프트)에서 apach-tomcat의 bin폴더로 이동
cd C:\java\apache-tomcat-10.1.24\bin

아래 명령어 실행
catalina.bat run

이클립스에서 바로 실행하기
이제 이클립스에서 새 워크스페이스(jsp-workspace3)를 만든 후
Servers 클릭
No Servers are available. Click this link to create a new server... 클릭

apache 폴더 내의 Tomcat v10.1 Server 클릭 후 Next 클릭


Browse 누르고

다운받은 apache-tomcat-10.1.24 폴더 선택

Finish 누르면

아래와 같은 폴더 생성됨

start 눌러서 실행

new > Dynamic Web Project 생성

new 했을 때 Dynamic Web Project가 안보이는 경우에는 new > Other 누른 후
Web > Dynamic Web Project 선택

Dynamic Web Project 생성 시 Target runtime이 Apache Tomcat v10.1로 되어있는지 확인

Window > Preferences로 들어간 뒤

Web란에서 CSS Files, HTML Files, JSP Files의 Encoding을 모두 UTF-8로 변경

webapp 폴더 안에 index.jsp 파일 만들어주고

Tomcat server 실행 뒤

코드 실행시키고

톰캣 서버 선택 뒤 Finish 눌러주면

자동으로 화면이 뜬다

'Java ☕️' 카테고리의 다른 글
댓글 추가될수록 본게시글에도 숫자뜨도록 (0) | 2024.07.03 |
---|---|
Context.xml과 JNDI(Java Naming and Directory Interface) (0) | 2024.07.03 |
[JFrame, Swing] WindowBuilder 설치방법 (0) | 2024.05.28 |
[jdbcDriver/mariaDB] mariaDB jdbcdriver 다운 (0) | 2024.05.24 |
[JDBC Driver/mariaDB] jdbc driver command prompt에서 실행하기 (0) | 2024.05.24 |
아래 사이트 접속
Apache Tomcat® - Apache Tomcat 10 Software Downloads
Welcome to the Apache Tomcat® 10.x software download page. This page provides download links for obtaining the latest version of Tomcat 10.1.x software, as well as links to the archives of older releases. Unsure which version you need? Specification versi
tomcat.apache.org
Download아래 버전 클릭

클릭해서 압축파일 다운로드

다운로드된 압축파일 풀기

cmd(명령 프롬프트)에서 apach-tomcat의 bin폴더로 이동
cd C:\java\apache-tomcat-10.1.24\bin

아래 명령어 실행
catalina.bat run

이클립스에서 바로 실행하기
이제 이클립스에서 새 워크스페이스(jsp-workspace3)를 만든 후
Servers 클릭
No Servers are available. Click this link to create a new server... 클릭

apache 폴더 내의 Tomcat v10.1 Server 클릭 후 Next 클릭


Browse 누르고

다운받은 apache-tomcat-10.1.24 폴더 선택

Finish 누르면

아래와 같은 폴더 생성됨

start 눌러서 실행

new > Dynamic Web Project 생성

new 했을 때 Dynamic Web Project가 안보이는 경우에는 new > Other 누른 후
Web > Dynamic Web Project 선택

Dynamic Web Project 생성 시 Target runtime이 Apache Tomcat v10.1로 되어있는지 확인

Window > Preferences로 들어간 뒤

Web란에서 CSS Files, HTML Files, JSP Files의 Encoding을 모두 UTF-8로 변경

webapp 폴더 안에 index.jsp 파일 만들어주고

Tomcat server 실행 뒤

코드 실행시키고

톰캣 서버 선택 뒤 Finish 눌러주면

자동으로 화면이 뜬다

'Java ☕️' 카테고리의 다른 글
댓글 추가될수록 본게시글에도 숫자뜨도록 (0) | 2024.07.03 |
---|---|
Context.xml과 JNDI(Java Naming and Directory Interface) (0) | 2024.07.03 |
[JFrame, Swing] WindowBuilder 설치방법 (0) | 2024.05.28 |
[jdbcDriver/mariaDB] mariaDB jdbcdriver 다운 (0) | 2024.05.24 |
[JDBC Driver/mariaDB] jdbc driver command prompt에서 실행하기 (0) | 2024.05.24 |