Sunday, 12 November 2017

Add server in Netbeans

Since NetBeans IDE is already available with Glassfish server and Apache Tomcat server, and you can install both when you install NetBeans. But sometime we don't want to install it, because either we want to use another server rather than both or we would have been already installed this and working on other projects or may of some other reasons.

So, how can we use external web server in NetBeans ?

It is very simple to add server in NetBeans. After installing NetBeans go to menu

Tools ----> Servers


After clicking on Servers a server window will be opened.


Click on Add Server button at bottom left corner, a new add server window will be opened.


Choose the desired server and click on Next. A new Add Server Instance window will be opened.
Here you will have to provide server location 
For example-
In the case of Ubuntu-
 /home/arvind/apache-tomcat-8.0.32
In the case of Windows-
C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.27
 by clicking Browse button.
 Also enter the user credential if you have created in the web server.
Then click Finish.



You can also add server from services window available in left pane of IDE.


Right click on Servers and then select Add server and follow the instruction given above from Add Server Instance Window.







No comments:

Post a Comment

Change image source dynamically on hyperlink

 Changing image source dynamically using JQuery. Here in this example I have created there hyperlink and stored all images in the same folde...