Netbeans Setup

This article will walk you through the steps of setting up Netbeans. Netbeans is a software application that is commonly used in Robert Erickson’s web development classes including CS008 and a few others. This article walks through the process of setting up netbeans on a Mac but I assure you that the process is almost identical when you are using a Windows machine.

First we need to install Netbeans and the download link can be found here:

https://netbeans.org/downloads/

Most people will probably want to download the version that is specific to HTML5 and PHP.

From there we need to install Netbeans. Run the installer as you would normally for any other application then open Netbeans. When you open Netbeans you should see something like this.

06

Basically Netbeans manages all the different server connections by having a separate project for each one. As a result we need to create a new project for UVM CS008. You can do this by clicking the small orange square in the top right corner. When you do it should bring up a screen that looks similar to this:

07

Now this is asking what type of project we would like to create. Please click on PHP from the left window which should allow you to choose PHP Application from the right window as seen below.

09

 

Now click Next which will allow you to begin and setup your project.

10

In the Project Name field please enter something like cs008. After that we need to choose a location for the Sources Folder. Click Browse.

11

Navigate to the Documents folder and then create a directory called cs008. From there click open and return to the previous screen. Now verify that the Sources Folder is pointing to a directory within the Documents folder and click next. Now we need to configure the server connection for your project.

15

Make sure the Run As setting is set to FTP, SFTP or Netbeans will not be able to communicate to the server where you site is being hosted.

In the project URL field please enter http://bstringe.w3.uvm.edu/cs008 Note: bstringe should be replaced with your netid.

Click Manage so that we can setup the finer details of the remote connection. You will be prompted to Create a New Connection.

17

Make sure the Connection Type is SFTP and you can name it pretty much anything you want. Click OK.

19

Setup the Remote Connection as seen above.

Host Name: w3.uvm.edu

Port: 22

User Name: YourNetid

Password: Leave Empty

Private Key File: Leave Empty

Known Hosts File: Leave Default Value

Initial Directory: /users/FirstLetterOfNetid/SecondLetterOfNetid/FullNetid/www-root/cs008

Now click test connection.

21

Enter your UVM Password and you should see this:

22

This means we are almost done. Press OK and you should get brought back to this screen.

24

Note: Make sure the Upload Directory field is blank.

Click Finish and now we can test the connection.

To do this create a new PHP Document and name it index.php. You should see something like this:

26

Please type print(‘test’); between . If ?> does not exist add somewhere after print(‘test’).

Now click the Green play button and upload the file to the web. If you did it correctly you should see something similar to what you see below open in your default web browser.

28

 

If you have any questions please contact the TA for your course and they should be able to help you troubleshoot the issue further. Additionally you are welcome to come into the UVM Computer Carry-In Clinic and they will be able to assist you with the install.

 

 

 

Leave a Reply

You must be logged in to post a comment.