IT'S DO
article thumbnail
728x90

Next

 

yes

finish

 

 

 

자바 버전 확인

실행 - cmd  - java -version

명령어 쳤음에도 불구하고 안나오면 자바 환경변수 잡아줘야 됨.

자바 환경변수 부분은

개발 환경 설정 개인 정리 라는 글 참고

https://itsdo.tistory.com/30

 

해당 Project Facets 자바 버전 위에 확인 된 것으로 바꿔주기

그리고 Apply and Close 클릭

 

# 그리고 WAS 잡아주기 TOMCAT 

다운로드는 https://itsdo.tistory.com/35

 

apache-tomcat-8.5 Download

https://tomcat.apache.org/download-80.cgi Apache Tomcat® - Apache Tomcat 8 Software Downloads Welcome to the Apache Tomcat® 8.x software download page. This page provides download links for obtain..

itsdo.tistory.com

 

 

 

Open

 

 

 

설치한 위치 폴더 선택

 

 

프로젝트 선택 후 add 후 finish

 

실행 해보기 정상적으로 실행되면 상관 없음. 하지만

Port 8080 required by Tomcat v8.5 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

라는 문구 나오면 이미 해당 포트를 사용 중인것. 

1. cmd에서 해당 pid에서 8080 포트를 삭제 해주던지

2. 흔히 오라클 8080포트로 인해서 저런 에러가 나오는데, 오라클 포트 8080을 변경해주던지

3. 제일 간단하게 

더블 클릭 후

에서 8080을 8081로 변경 후에 

실행 해보자

 

콘솔 창에서 정상적으로 실행된 것을 확인 가능.

 

그리고 stop 다시 

해당 부분 더블 클릭

 

overview에서 

우측 Modules 탭 클릭

에서 Edit 클릭

path / 로 하기

OK 클릭

그 다음 ctrl + s 로  tomcat 설정 저장

 

그 후 프로젝트에서 오른쪽 마우스에서

Build Path 클릭 Configure Build path 클릭

 

java Build path에서 Server Runtime apache tomcat 있나 확인 없으면 좌측 Add Libary 클릭

 

apache tomcat v8.5 클릭 후 finish

 

그 후에 WAS(TOMCAT) 실행 

 

그 후에 아무 Chrom, 익플 등 URL에다가 

localhost:8081

나오는 것 확인 가능

이 글자 깨지는 건 utf-8 인코딩 설정 안해줘서 그런것

 

profile

IT'S DO

@멋진놈

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!