
Play Store Application link – Advance java – in 15 steps – Apps on Google Play
Learn with our youtube video –
2 steps to configure advance java –
- 1-Installation of server in windows/Linux/Mac
- 2-Configuration of server in Eclipse/ Intelij/ Netbeans
Important –
1- Server – A server is a program that listens for requests from clients (such as browser) and sends back responses.
Why Tomcat server? – Tomcat is popular open-source Java web server (JVM is installed already), lightweight and easy to install, making it a good choice for local development.
1-Installation of server (Tomcat)–
Here is a comparison of the steps to install a Java EE server, such as Apache Tomcat, on Windows, Linux, and Mac OS:
Windows | Linux | Mac OS | |
---|---|---|---|
1. Download Tomcat | Download the latest version of Tomcat from the Apache Tomcat website (http://tomcat.apache.org). | Download the latest version of Tomcat from the Apache Tomcat website (http://tomcat.apache.org). | Download the latest version of Tomcat from the Apache Tomcat website (http://tomcat.apache.org). |
2. Install Tomcat | Double-click the downloaded .exe file and follow the prompts to install Tomcat. | Extract the downloaded .tar.gz file to the location where you want to install Tomcat. | Extract the downloaded .tar.gz file to the location where you want to install Tomcat. |
3. Start Tomcat | Open the Tomcat Monitor and start the server. | From the terminal, navigate to the Tomcat bin directory and enter the command “./catalina.sh run”. | From the terminal, navigate to the Tomcat bin directory and enter the command “./catalina.sh run”. |
4. Test installation | Open a web browser and navigate to http://localhost:8080 to access the Tomcat welcome page. | Open a web browser and navigate to http://localhost:8080 to access the Tomcat welcome page. | Open a web browser and navigate to http://localhost:8080 to access the Tomcat welcome page. |
2- Configuration of server in Eclipse/ Intelij/ Netbeans
Steps to configure Apache Tomcat in Eclipse, IntelliJ IDEA, and NetBeans:
Eclipse | IntelliJ IDEA | NetBeans | |
---|---|---|---|
1. Install the Java EE plugin | In Eclipse, go to Help > Install New Software. In the “Work with” field, enter the URL for the update site for your version of Eclipse (e.g. https://download.eclipse.org/ releases/[eclipse_version]). Select the “Java EE Developer Tools” option and follow the prompts to install the plugin. | In IntelliJ IDEA, go to File > Settings > Plugins. Click the “Install JetBrains plugin” button and search for the “Java EE” plugin. Select the plugin and click “Install”. Restart IntelliJ IDEA when prompted. | In NetBeans, go to Tools > Plugins. In the “Available Plugins” tab, search for the “Java EE” plugin. Select the plugin and click “Install”. Follow the prompts to complete the installation. |
2. Add Tomcat to the IDE | In Eclipse, go to Window > Preferences > Server > Runtime Environments. Click the “Add” button and select the Apache Tomcat installation directory. Follow the prompts to complete the configuration. | In IntelliJ IDEA, go to File > Settings > Build, Execution, Deployment > Application Servers. Click the “Add” button and select the Apache Tomcat installation directory. Follow the prompts to complete the configuration. | In NetBeans, go to Tools > Servers. Click the “Add Server” button and select the Apache Tomcat installation directory. Follow the prompts to complete the configuration. |
3. Create a new project | In Eclipse, go to File > New > Dynamic Web Project. Enter a name for the project and select the target runtime (i.e. the version of Tomcat that you added in the previous step). Click “Finish” to create the project. | In IntelliJ IDEA, go to File > New > Project > Java Enterprise > Enterprise Application. Enter a name for the project and select the target runtime (i.e. the version of Tomcat that you added in the previous step). Click “Next” and follow the prompts to create the project. | In NetBeans, go to File > New Project > Java Web > Web Application. Enter a name for the project and select the target runtime (i.e. the version of Tomcat that you added in the previous step). Click “Finish” to create the project. |
4. Add Tomcat to the project | In Eclipse, right-click on the project and go to Properties > Targeted Runtimes. Select the version of Tomcat that you want to use for the project and click “Apply” to add it to the project. | In IntelliJ IDEA, right-click on the project and go to Add Framework Support > Java EE. Select the version of Tomcat that you want to use for the project and click “OK” to add it to the project. | In NetBeans, right-click on the project and go to Properties > Run > Server. Select the version of Tomcat that you want to use for the project and click “OK” to add it to the project. |