Web application development environment construction in Java (for inexperienced people)


This article is intended for inexperienced people in your company, and provides steps to get you from creating the environment to the entrance to the actual logic without stumbling. Therefore, there is nothing new!

About the technology to use

It is based on the following technology set.

Using the above, we will explain the infrastructure and environment construction of a simple web application using Servlet and JSP.

1. Installation of web server (Apache)

1. Download

Click the following in order to download. Download site: Apache 2.4 image.png image.png image.png image.png

2. Installation

Unzip the downloaded file to any folder. Make a note of the following folder path in the unzipped folder.

{Unzipped folder}¥Apache24¥bin

Access this path from the command line using the command prompt.

C:¥> cd {Unzipped folder}¥Apache24¥bin

** * Caution * Open a command prompt with administrator privileges. (Because administrator privileges are required for installation) **

Windows Key> Windows System Tools> Command Prompt (Right Click)> Other> Run as administrator image.png

C:¥> cd {Unzipped folder}¥Apache24¥bin
C:¥{Unzipped folder}¥Apache24¥bin> httpd.exe -k install

image.png Apache tries to start according to the installation, but it cannot be started due to a Syntax error, so check the configuration file. The configuration file is ** {Unzipped folder} \ Apache24 \ conf \ httpd.conf **

3. Start

image.png The initial value is the "/ Apache24" folder, and since such a folder does not exist in Windows, an error occurred. Change according to the environment.

# Define SRVROOT "/Apache24"
Define SRVROOT "{Unzipped folder}/Apache24"

When starting again, use Apache Monitor. There is an exe file under the bin folder, so when you execute it, it will be resident in the taskbar. image.png image.png When you click Start, the feather stop symbol (red) replaces the execution symbol (green). After starting, access the following URL with a browser, and if the default page is displayed, it's OK!

2. Installation of application server (Tomcat)

1. Download

Click the following in order to download. Download site: Tomcat9 image.png image.png

2. Installation

Execute the downloaded ** "apache-tomcat-9.0.17.exe" ** and follow the wizard to install it. image.png image.png image.png image.png image.png image.png You can uncheck the last "Show Readme".

3. Start

Tomcat will start when the installation is completed, so if you access the URL below and the screen is displayed, it's OK!

3. Install database server (postgreSQL)

For the installation of postgreSQL, I prepared a Qiita article for another matter, so refer to that.

4. Introduction of IDE (Eclipse)

1. Download

Click the following in order to download. image.png image.png

2. Installation

Unzip the downloaded ** "pleiades-2019-03-java-win-64bit_20190324.zip" ** and place it in any folder.

{Unzipped folder}¥pleiades¥eclipse¥eclipse

Execute ** "eclipse.exe" ** in the unzipped folder.

3. Start

OK if you can start it! image.png

5. Settings up to WEB application creation

A simple description of the target configuration looks like this image.png

Recommended Posts

Web application development environment construction in Java (for inexperienced people)
Environment construction for Servlet application development
Java web application development environment construction with VS Code (struts2)
Java application development environment created in VM environment
java development environment construction
Creating a java web application development environment with docker for mac part1
Create a java web application development environment with docker for mac part2
JavaFX environment construction in Java 13
Build Java development environment (for Mac)
[For beginners] Until building a Web application development environment using Java on Mac OS
[Java & SpringBoot] Environment Construction for Mac
[Processing x Java] Construction of development environment
Java development environment construction memo on Mac
Play Framework 2.6 (Java) environment construction in Eclipse
Spring Boot + Docker Java development environment construction
Role of JSP in Web application [Java]
[Java] Environment construction
Java environment construction
Java development environment
Solution for NetBeans 8.2 not working in Java 9 environment
Build a web application development environment that uses Java, MySQL, and Redis with Docker CE for Windows
Build a development environment for Docker, java, vscode
Points stuck in building VSCode & Java development environment
[Beginner] Install java development tool in cloud9 development environment.
[For beginners] Laravel Docker AWS (EC2) How to easily deploy Web application (PHP) from 0 (free) ②-Docker development environment construction-
What did I prepare for when I entered an Android application development project while developing the Web in Java?
Java development environment memo
[LeJOS] Let's program mindstorm-EV3 in Java [Environment construction part 2]
Java development environment construction on Mac-JDK Install (2020 preservation version)
BEAR application Docker development environment construction example (docker-sync, Mutagen)
[Mac] VS Code development environment construction (Java, Gradle, Node.js)
Stable development environment construction manual for "Rails6" with "Docker-compose"
Things to watch out for in future Java development
[Java] Environment construction procedure for developing struts 1.3 with Eclipse
[Environment construction] Build a Java development environment with VS Code!
Java + Spring development environment construction with VirtualBox + Ubuntu (Xfce4)
Java development environment construction (Mac + Pleiades All in One Eclipse 4.7 + Spring Boot + Gradle (Buildship))
How to check the WEB application created in the PC development environment on your smartphone
A study method for inexperienced people to pass Java SE 8 Silver in one month
Rails6 development environment construction [Mac]
[LeJOS] Let's program mindstorm-EV3 in Java [Environment construction first part]
Use Java Web Start in an OpenJDK environment on Windows
[Procedure 1 for beginners] Ruby on Rails: Construction of development environment
Things you often use when doing web development in Java
Web application development article summary
Java development environment (Mac, Eclipse)
AtCoder Challenge Environment Construction (Java 8)
Rails application development environment construction with Docker [Docker, Rails, Puma, Nginx, MySQL]
First Java development in Eclipse
How to install Web application for each language in Nginx
Introducing Spring Boot2, a Java framework for web development (for beginners)
Create a Java and JavaScript team development environment (gradle environment construction)
Java application for beginners: stream
[Java development environment construction] Install OpenJDK 11 (Java 11) on macOS with Homebrew.
Procedure for migrating Rails application development environment to Docker even if you are inexperienced (Rails5 + MySQL8.0 + docker-compose)
Spring5 MVC Web application development with Visual Studio Code Environment construction (Installation of JDK11, Maven, Tomcat, Visual Studio Code)
Comparison of WEB application development with Rails and Java Servlet + JSP
Use MailHog for checking emails in the development environment (using Docker)
[Java] [Spring] [JavaScript] [gulp] [webpack] [uglify] Private AngularJS application development environment
Ruby on Rails --From environment construction to simple application development on WSL2
Procedure for building a Rails application development environment with Docker [Rails, MySQL, Docker]