KEMBAR78
Instructions For Setting Up The Environment For Java Web | PDF | Net Beans | Applications & Software
0% found this document useful (0 votes)
22 views8 pages

Instructions For Setting Up The Environment For Java Web

Instructions-for-setting-up-the-environment-for-java-web
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views8 pages

Instructions For Setting Up The Environment For Java Web

Instructions-for-setting-up-the-environment-for-java-web
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Instructions for setting up the environment for java web PRJ301

To develop and deploy a java web application on WINDOW, you need to follow 4 below
instructions:

1> Installing JDK 8u321

Page: https://www.oracle.com/java/technologies/downloads/

Scroll down to find the version you need.

After installing, let check the installation folder:

Normally it will be located at: C:\Program Files\Java. It contains 2 folders JDK and JRE.

If you see these folders, it is ok for now.

For more details, you can read https://www.oracle.com/java/technologies/javase-jdk8-doc-


downloads.html

2> Installing Apache Tomcat 10.0.18


Download page: https://tomcat.apache.org/download-10.cgi

Open the installer file then click “Next” button, until you see the below screen:

By default, the HTTP port is set as 8080, but I prefer to change it to 9999. You can keep it as
8080 or change it as you desire. Same for Window Service Name.
You can also set username and password at this step, but it is an optional and you can do it later.

Click “Next”, then the installer will ask you for JRE folder. Basically, the installer can
automatically detect JRE folder, but in the case it cannot, you can add it manually.

Click “Next” …. Again then “Finish”.

Normally, you are going to see the below window app displayed:
It is ok, this application used to control your TOMCAT webserver, but if you do not see it, do
not worry. I recommend you follow below instructions:

1. TOMCAT now is installed as a Window Service (It is a software, but it does not have a
graphic user interface).
2. To work with Window Service, press window+R, fill service.msc
3. Find the TOMCAT service in the list:

Right click -> properties ->

Now you can start/stop the TOMCAT service. Just make sure it is running before use.
You can grant permission for TOMCAT to run with Local System account on the same
dialog.

3> Installing Apache NetBeans IDE 13.

Download: https://netbeans.apache.org/download/nb13/nb13.html
During your installation, remember to select JDK 1.8 (just in case, you have more than one
version of Java).

After installation, run netbeans 13, File > New Project > Java with Ant > Select Web Application
(It is disabled by default, just select it, netbeans will automatically enable the project template).

4> Integrating Apache NetBeans IDE 13 with Apache Tomcat.

+ First, open the Apache Tomcat folder:

By default, it is located at: C:\Program Files\Apache Software Foundation\Tomcat 10.0

The system may ask you to grant permission, just click “Yes” button. This step aims to allows
your account to access the Apache Tomcat folder for further tasks.

+ Open netbeans, on the menu bar, Window > Service (ctrl + 5) > select Service panel as
following:

Server > Right click > Add Server > Apache Tomcat and TomEE >
Here you can create your username and password, then finish. Now you can work with Java Web
project in netbeans 13.

If you get an error related to “CATALINA_base is Invalid”, check the first step.

Errors related to Tomcat will be logged to “C:\Program Files\Apache Software Foundation\


Tomcat 10.0\logs”, check the catalina**** file for the detail logs.

You might also like