Categories
Eclipse Java Ubuntu Ubuntu 18.04

Install latest Eclipse in Ubuntu 18.04 easily

Step 1: Update your system apt-get update && apt-get upgrade Step 2: Install Java Open JDK sudo apt-get install default-jdk It will install the latest version of Java. Step 3: Install Eclipse using snap Sudo apt install eclipse Step 4: Check installation Click on “Show application”, it will all the installed applications along with Eclipse

Categories
Eclipse Java Spring

Installing Lombok in Eclipse

Step 1: Download jar file from Lombok official site. Step 2: Open Command Prompt, navigate to the download folder, type command: java -jar lombok-1.18.4.jar Step 3: Lambok will open, it will automatically select the default Eclipse installation folder, it can be manually selected as well. Step 4: After selecting the Eclipse installation directory, click Install/Update, […]

Categories
Eclipse Java JSP Tomcat

Hello World JSP using Eclipse and Tomcat

Step 1: Create a Dynamic Web Project Give it a name Step 2: Create one JSP file with name index.jsp in WebContent folder Step 3: Add a heading “Hello World” in jsp page to test Step 4: Now Right click on the project root directory and run on server The result will be displayed on […]

Categories
Eclipse Java Tomcat

How to fix: Eclipse, The superclass “javax.servlet.http.HttpServlet” was not found on the JavaBuild Path

Step 1: Right click on the project root directory, and click on properties Step 2: Then click on Target Runtimes, select Tomcat, click “Apply and Close”

Categories
Eclipse Java Tomcat

Table: Tomcat version and its supported Java versions

Apache Tomcat new versions don’t support new older Java versions, must check Java support versions before installing Apache Tomcat. Verify support versions of Apache Tomcat and Java Versions using the table below.

Categories
Eclipse Java Tomcat

How to install Tomcat using zip file

Step 1: Go to official Apache Tomcat Website, navigate to download section, download appropriate version, and download zip file Step 2: Once downloaded, extract the file, and copy the extracted file to your suitable installation directory Step 3: Open “Command Prompt”, navigate to the “Tomcat extracted directory”, navigate to bin directory, start Tomcat using command […]

Categories
Eclipse Java Tomcat

How to change Tomcat port

Step 1: Go to the installation directory of Tomcat, then into conf folder, the default installation directory is: C:\Program Files\Apache Software Foundation\Tomcat 8.5\conf Step 2: Open server.xml file using any text editor Step 3: Change the following line with a new port number Step 4: Open command prompt, and navigate to Tomcat bin directory, enter […]

Categories
Eclipse Java Tomcat

How to install Tomcat in Windows

Step 1: Download Tomcat from official website, download “32-bit/64-bit Windows Service Installer” Step 2: After download, double click on it to install Step 3: Select port Step 4: Select JRE or JDK folder, both will work Step 5: Select installation directory

Categories
Eclipse Java

Tomcat requires JDK or JRE ?

Tomcat documentation specifies JRE for installation. The minimum version of JRE depends on Tomcat version, check out the chart below JDK can also be used in place of JRE, for JRE environment variables will be JRE_HOME, and for JDK JAVA_HOME JDK provides certain additional startup option The difference using JDK over JRE is to enable […]

Categories
Eclipse

Dynamic Web Project missing in Eclipse IDE

It’s very easy to fix Dyanamic project missing from Eclipse IDE Step 1: Go to Help -> Install new software Step 2: Put the link http://download.eclipse.org/releases/mars into “Work with” and press inter http://download.eclipse.org/releases/mars Step 3: Scroll down to “Web, XML, Java EE and OSGI Enterprise Development” section Step 4: Select the four option Selected in […]