Banner

My Tech Blog (ํ†ฐ์บฃ)

ํ”„๋กœ์ ํŠธ ์šฐํด๋ฆญ > Properties > Project Facet > Dynamic Web Module > ๋ฒ„์ „ ํ™•์ธ6.1์ด์—ˆ๋˜ ๊ฑธ 6.0์œผ๋กœ ํ•ด์ฃผ๋‹ˆ๊นŒ ์ž˜ ๋จ.์ฒ˜์Œ์— Dynamic Web Project ์ƒ์„ฑ์‹œ 6.0์œผ๋กœ ํ–ˆ์—ˆ๋‚˜ ๋ด„  Dynamic Web Module ๋ฒ„์ „์ด 6.1์—์„œ 6.0์œผ๋กœ ๋ณ€๊ฒฝ๋˜์—ˆ์„ ๋•Œ ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋œ ๊ฒƒ์„ ๋ณด๋ฉด, ํ”„๋กœ์ ํŠธ ์„ค์ •์—์„œ ํ†ฐ์บฃ ์„œ๋ฒ„์™€ ๊ด€๋ จ๋œ ํ˜ธํ™˜์„ฑ ๋ฌธ์ œ๊ฐ€ ์žˆ์—ˆ๋˜ ๊ฒƒ ๊ฐ™๋‹ค. Dynamic Web Project ์ƒ์„ฑ ์‹œ ํ†ฐ์บฃ ์„œ๋ฒ„ ์„ ํƒ์ด๋ž‘ ๋ชจ๋“ˆ ์„ ํƒํ–ˆ์—ˆ๋Š”๋ฐ 6.0 ๋ฒ„์ „์œผ๋กœ ํ–ˆ๋‚˜๋ณด๋‹ค. ๊ทธ๋ž˜์„œ 6.0์ด ํ†ฐ์บฃ ์„œ๋ฒ„๋ž‘ ํ˜ธํ™˜์ด ๋œ ๊ฒƒ ๊ฐ™๋‹ค. Eclipse์—์„œ๋Š” ํ”„๋กœ์ ํŠธ ์„ค์ •์ด ํ†ฐ์บฃ ์„œ๋ฒ„๋‚˜ ๋‹ค๋ฅธ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋ฒ„์ „๊ณผ ์ถฉ๋Œํ•  ์ˆ˜ ์žˆ๊ธฐ ๋•Œ๋ฌธ์—, ํ”„๋กœ์ ํŠธ์˜ Facet ๋ฒ„์ „์„ ๋งž์ถ”๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•˜๋‹ค.
์ดํด๋ฆฝ์Šค ์›น๊ฐœ๋ฐœํ™˜๊ฒฝ ํ™˜๊ฒฝ์„ค์ • ๋„์ค‘ Tomcat ์„œ๋ฒ„ ์‹คํ–‰ ์•ˆ๋˜๋ฉด์„œ ์•„๋ž˜์˜ ์•„๋ž˜ ๋œธ. Build path specifies execution environment JavaSE-22. There are no JREs installed in the workspace that are strictly compatible with this environment. ํ•ด๊ฒฐ๋ฒ• ์„ค์น˜ํ•œ JDK ๋ž‘ ์ดํด๋ฆฝ์Šค ๋ฒ„์ „์ด ๋‹ฌ๋ผ์„œ ์ƒ๊ธฐ๋Š” ๋ฌธ์ œ์„ค์น˜ํ•œ JDK๋ž‘ ์ดํด๋ฆฝ์Šค ์—ฐ๋™์„ ํ•ด ์ค˜์•ผ ํ•œ๋‹ค.๋‚˜๋Š” JDK17 ์„ ์“ฐ๋‹ค๊ฐ€ ์ดํด๋ฆฝ์Šค ์ƒˆ๋กœ์šด ๋ฒ„์ „์„ ๋‹ค์šด๋ฐ›์œผ๋ฉด์„œ JDK23์œผ๋กœ ์—…๊ทธ๋ ˆ์ด๋“œ ํ•ด ์ฃผ์–ด์„œ ๋ฐœ์ƒํ•œ ๋ฌธ์ œ์ด๋‹ค.JDK23์€ ์ดํด๋ฆฝ์Šค 2024-12๋ž‘ ํ˜ธํ™˜๋œ๋‹ค.์ดํด๋ฆฝ์Šค ์ตœ์‹ ๋ฒ„์ „ ๋‹ค์šด๋ฐ›์€ ํ›„ ํ”„๋กœ์ ํŠธ ์šฐํด๋ฆญ > Java Build Path > Libra..
JDK download์ œ์–ดํŒ - ์‹œ์Šคํ…œ - ๊ณ ๊ธ‰์‹œ์Šคํ…œ์„ค์ • - ํ™˜๊ฒฝ๋ณ€์ˆ˜ -C:\Program Files\Java\jdk-17 ์ถ”๊ฐ€Path์— C:\Program Files\Java\jdk-17\bin ์ถ”๊ฐ€ Apache Tomcat downloadzip ํŒŒ์ผ ๋‹ค์šด๋กœ๋“œ -> ๊ฒฝ๋กœ๋Š” C๋“œ๋ผ์ด๋ธŒ์— JSP๋ผ๋Š” ํด๋” ๋งŒ๋“ค์–ด์ฃผ๊ณ  ์—ฌ๊ธฐ์— ์••์ถ• ํ’€์–ด์คŒC:\JSP\apache-tomcat-10.1.33\binstartup ๋ฐฐ์น˜ํŒŒ์ผ ์‹คํ–‰ํ•ด์„œ ์„œ๋ฒ„ ์ž‘๋™์‹œํ‚ค๊ธฐ๊ทธ์ „์— ํ˜„์žฌ ์œ„์น˜ ๋ณต์‚ฌํ•ด์„œ cmd(๋ช…๋ นํ”„๋กฌํ”„ํŠธ) ์ฆ‰์‹œ md ๊ด€๋ฆฌ์ž๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰cd C:\JSP\apache-tomcat-10.1.33\binstartup.bat์„œ๋ฒ„ ์‹คํ–‰  ํ”„๋กœ๊ทธ๋žจ์€ ๋„๋ฉด ์•ˆ๋จ๋ฐฐ์น˜ํŒŒ์ผ ์ผœ๋†”์•ผ ์›น์„œ๋ฒ„๊ฐ€ ๊ณ„์†ํ•ด์„œ ์ž‘๋™ http://localhost:8080/์ฃผ์†Œ์ฐฝ..
โœจ์›น ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ๊ตฌ์ถ•ํ•˜๊ธฐJDK(Java Development Kit) : ์ž๋ฐ” ๊ฐœ๋ฐœ ๋„๊ตฌํ†ฐ์บฃ(Apache Tomcat) : ์›น ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ์„œ๋ฒ„(WAS)์ดํด๋ฆฝ์Šค(Eclipse) : ์ฝ”๋”ฉ๊ณผ ์ปดํŒŒ์ผ ํ•จ๊ป˜ ํ•  ์ˆ˜ ์žˆ๋Š” ์ข…ํ•ฉ ๊ฐœ๋ฐœ ํˆด(IDE) 1. ์›น ์„œ๋ฒ„ - ํด๋ผ์ด์–ธํŠธ์˜ ์š”์ฒญ์„ ๋ฐ›์œผ๋ฉด ํ•ด๋‹น ์ฒ˜๋ฆฌ๋ฅผ ํ•ด์„œ ๊ฒฐ๊ณผํŽ˜์ด์ง€๋ฅผ ์‘๋‹ตํ•˜๋„๋ก ๊ตฌ์„ฑ๋œ ์„œ๋ฒ„ 2. WAS- ์›น ์„œ๋ฒ„๋งŒ์œผ๋กœ๋Š” DB์™€ ์—ฐ๋™ํ•˜์—ฌ ์ฒ˜๋ฆฌํ•ด์•ผ ํ•˜๋Š” ๋™์ ์ธ ๋ฐ์ดํ„ฐ ์ฒ˜๋ฆฌ๊ฐ€ ์–ด๋ ต๊ธฐ ๋•Œ๋ฌธ์— DBMS์™€ ์›น์„œ๋ฒ„ ์‚ฌ์ด์—์„œ ์ œ์–ดํ•ด์ฃผ๋Š” ํ”„๋กœ๊ทธ๋žจ 3. JSP- [Dynamic Web Project] => [Web Project] => [New->JSP File] - Java Server Page์˜ ์•ฝ์ž, ์ž๋ฐ”๋กœ ์„œ๋ฒ„ ํŽ˜์ด์ง€ ์ž‘์„ฑํ•˜๊ธฐ ์œ„ํ•œ ์–ธ์–ด- HTML๊ณผ JSP ํƒœ..
1. JDK ์ตœ์‹ ๋ฒ„์ „ ์„ค์น˜ Download the Latest Java LTS Free Subscribe to Java SE and get the most comprehensive Java support available, with 24/7 global access to the experts. www.oracle.com ํ˜„์žฌ(2024๋…„ 4์›” 15์ผ) ๊ธฐ์ค€์œผ๋กœ JDK22๊นŒ์ง€ ์ถœ์‹œ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ €๋Š” JDK21 ๋ฒ„์ „์„ ์„ค์น˜ํ•˜๋Š” ๊ฒƒ์„ ๊ถŒ์žฅ๋“œ๋ฆฝ๋‹ˆ๋‹ค. 22๋ฒ„์ „์€ ์ถœ์‹œ๋œ ์ง€ ํ•œ ๋‹ฌ ๋‚จ์ง“์ด๋ผ ๋ณด์•ˆ ์—…๋ฐ์ดํŠธ๋‚˜ ๋ฒ„๊ทธ ์ˆ˜์ • ์ง€์›์ด ๋ฏธ๋น„ํ•ด์„œ ์•ˆ์ •ํ™”๊ฐ€ ์ด๋ฃจ์–ด์ง€์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค. ์˜ค๋ผํด์‚ฌ์—์„œ๋„ ํ˜„์žฌ 22,21,17๋ฒ„์ „์ด ์ด์šฉ๊ฐ€๋Šฅํ•˜๋‚˜ "JDK 21์ด Java SE ํ”Œ๋žซํผ์˜ ์ตœ์‹  ์žฅ๊ธฐ ์ง€์› ๋ฒ„์ „์ž…๋‹ˆ๋‹ค."๋ผ๊ณ  ์•ˆ๋‚ดํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์ตœ์‹ ์— ..
์ธ์ ˆ๋ฏธ์˜€๋˜๊ฒƒ
'ํ†ฐ์บฃ' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก
์ƒ๋‹จ์œผ๋กœ