JSP 개발 환경
JDK + Tomcat + Eclipse
최신버전을 무턱대고 쓰다보면, 호환이 안될 수도 있다고 한다.
1. JDK 설치
https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html
Java Archive Downloads - Java SE 17
WARNING: These older versions of the JDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in production. For production use Oracle recommends downloading th
www.oracle.com
그리고 매번하는 환경 변수를 설정해준다.
1. 사용자 환경 변수에 JAVA_HOME을 추가해주고,
2. 시스템 변수에 Path에 '%JAVA_HOME%bin' 도 추가해주고,
3. 시스템 변수에 CLASSPATH에 %JAVA_HOME%\lib\tools.jar 도 추가해준다.
그리고 cmd에서 아래와 같이 뜨면 끝
2. Eclipse설치
그냥 들어가서 받으면 되는데, web개발을 해야하므로, for web developers로 받아야한다.
https://www.eclipse.org/downloads/packages/release/2022-06
Eclipse 2022-06 | Eclipse Packages
www.eclipse.org
3. Tomcat
웹 어플리케이션 서버, 웹 브라우저에 웹 페이지를 실행시키기 위해 필요하다.
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 obtaining the latest versions of Tomcat 8.x software, as well as links to the archives of older releases. Unsure which version you need? Specification versions
tomcat.apache.org
기존에 다른 프로그램들과 포트번호가 충돌이 날 수도 있다.
본인은 예전에 깔았던 오라클이랑 충돌이 났었다. 이때는 포트번호를 변경해주거나, 삭제하거나 암튼 잘 해결하면된다.
설치가 정상적으로 완료됬다면, localhost:8080 을 접속해보면, tomcat페이지가 나온다.
이클립스와 톰캣 연동
1. 이클립스 좌측 상단 File > New > Other...
2. Server > Server > Next
3. Apache > Tomcat v10.0 Server > Finish