Creating a simple Java Servlet (Web Server Page) with Apache Maven on Microsoft Windows | |||
| |||
STEP 1. Install OpenJDK 17 https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-17 → select microsoft-jdk-17.0.10-windows-x64.msi → Install
STEP 2. Install Maven
STEP 3. Creating a Java Web project in VS Code by using Maven plugin If you haven't install “Java Extension Pack”, do below steps Run VS Code → File → Preferences → Extensions (Ctrl + Shift + X) → Type Run VS Code → File → Preferences → Extensions (Ctrl + Shift + X) → Type Run VS Code → File → Preferences → Extensions (Ctrl + Shift + X) → Type If you haven't install “Maven for Java”, do below steps Run VS Code → File → Preferences → Extensions (Ctrl + Shift + X) → Type
STEP 4. Create a Maven Project Create a Maven Project → maven-archetype-webapp → 1.4 → input group ID like As a result,
Refernce:
STEP 5. How to run web service https://tomcap.apache.org → Tomcat 10 → 32-bit/64-bit Windows Service Installer → Next → I Agree → + Host Manager + Examples → Set HTTP/1.1 Connector Port as Regarding Java Path, today I installed at You can check your web server at https://127.0.0.1:8080 if everything goes fine.
STEP 6. JSP/Servlet Tutorial Tags: Apache Tomcat 10 JSP Java Tomcat | |||
| |||
| |||
|
OTHER POSTS IN THE SAME CATEGORYJava Servlet ExampleHow do I replace content that based on the HTML UI TemplateDataset of California FoodbanksJava Tutorials associated with AP Computer Science AJava Inner ClassesJava PolymorphismJava Inheritance (Subclass and Superclass)Java PackagesJava Abstract Classes and MethodsJava Classes and ObjectsJava RecursionJava ScopeJava MethodsJava ArraysJava While Loop/Do While Loop/For Loop/For-Each Loop/Break/ContinueJava Switch StatementsJava Short Hand If...Else (Ternary Operator) |