vulms.vu.edu.pk · Web viewHow to install NetBeans Step 1 Install Jdk latest version according to...

Post on 05-Jul-2019

221 views 0 download

Transcript of vulms.vu.edu.pk · Web viewHow to install NetBeans Step 1 Install Jdk latest version according to...

How to install NetBeansStep 1

Install Jdk latest version according to your system requirements from the following link.

http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html

If there is old version of JDK already installed it will identify and notify you to uninstall it.

Just click on uninstall and move Next.

Finally you will get the message “You have successfully Installed Java”.

Step 2

After successful insallation of jdk, download Netbeans from this link

https://netbeans.org/downloads/start.html?platform=windows&lang=en&option=all

After downloading NetBeans IDE 8.1 setup, Run the exe file.

Steps for creating Web application project in NetBeans

Select new project

Choose java web folder and then web application

Click on Next

You can mention project name in project name field.

You can choose project location where you want to store by browsing location

Click on Next

Click on Next

Then click on Finish

Now you can create html/source web pages.

First choose web browser then run simple html page by clicking on play button (Green)

Now you can view output on selected web browser

Now you can add servlet by right clicking on project (webApplicationExample3) then click New and then click servlet

Write the name of servlet class then click on Next button

Click on Finish

You can write servlet code here.

Right click on servlet file and then Run File

Now you can view output of servlet class.

Now your Servlet is working properly.