Index
- Environment
- Initial Set Up
- Grabbing the source from apache.droids repository
- Opening the Maven Projects
Environment
This example was written on a Windows Vista 32 bit machine, but has also been tested on a 64 bit Fedora 11 installation, with only minimal differences (some of the system dialogue boxes look different, and obviously the directory paths are different, but seeing as those differences aren't important, I won't mention them)
I downloaded a vanilla version of Netbeans IDE version 6.7.1 from Netbeans Download Page, choosing the All
version. (302mB)
I also downloaded the Sun JDK from Sun's Java SE Downloads, since I'm planning on developing a Droids based Web application, but if thats not your intention, you could omit this stage. I chose the JDK 6 Update 14 with Java EE
Initial Set Up
- After installing NetBeans, I ran the Plugins Update tool
Tools > Plugins
, and opted to install a few extra plugins specifically for my intended project.
However, one plugin is required for this guide to work properly:Warning
You must install the NetBeans
Automatic Project
plug in.
- Create a directory somewhere on your disk. I used
.
C:\{UserDocuments}\NetBeansProjects\DroidSources
Be Careful
The name of your directory will become the project name in the next step, so choose wisely!
Since I've used the directory DroidSources my project will become DroidSources.
Alternative step: You can create this directory later, during creation of the project in the next step. Its a little tidier to do it now, but its not important which way you do it.
(See Alternative note lower down the page)
- In the NetBeans IDE, from the
File
menu selectNew Project
.
In theJava
section of the first tab you see, you will find theAutomatic Project
type that we installed in the previous step.
Highlight this option, and pressNext
Screenshot : New Project
dialogue with Automatic Project
shown.
- The next page of the
New Project
wizard asks you to specify a location for the new project. This is where you choose the directory we created earlier.
NB This directory must be empty.
Alternative
Optionally, as shown in the screenshot below, you can browse to somewhere on your disk, then use the New Folder
icon to create the directory at this stage.
Screenshot : Using the Browse
button to select the project location
Screenshot : The New Project
dialogue with the project location now chosen and visible in the Location
text box.
- Hit
Finish
to complete the wizard. Go make a coffee while NetBeans creates the project for you.