SettingUpNetBeans

From RepRap
Revision as of 10:29, 7 April 2008 by EdSells (talk) (version migrated from twiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Setting up NetBeans

Software versions known to work are shown in brackets, just in case future releases do not.

Download NetBeans (v6.0.1).

Download the CollabNet's SVN plug-in (v1.4.6).

Whilst it is possbile to download another set of project files just for use within NetBeans, it makes much more sense to just use the same project files you've already downloaded for Eclipse. (Amazingly, the SVN protocol is so robust that you can successfully sync your local source files through either IDE). Here's how to create the RepRap project within NetBeans:

  • Right click on 'Projects' pane, "New Project..."
  • In 'Categories' pick Java, in 'Projects' pick Java Project with Existing Sources. Click Next.
  • Project Name: 'RepRap', Project Folder: <enter a location here. This is just for the NetBeans project setup files, not the location of Eclipse's RepRap source files>.
  • Setting the Main Project check box will make this the default project for the compiler. Click Next.
  • Skip the next couple of 'next' steps. Any attempt to be clever here will royally mess it up. Just click 'Finish'.
  • Right click on your new project in the 'Projects' pane: 'Set Configuration' > Customize...
  • Under 'Categories' click 'Sources'. Under 'Source Package Folders' click 'Add Folder...'. Nav to the src folder previously downloaded through Eclipse & click Open.
  • Under 'Categories' click 'Libaries'. Under 'Compile-time libraries' click 'Add JAR/Folder...'. Nav to the lib folder previously downloaded through Eclipse & click Open. Click OK to save the settings.

When you use the 'Projects' pane, your setup should now look something like this:

SettingUpNetBeans-NetBeans FileTree.JPG

To check SVN is working correctly right click on the project, click 'Subversion' > 'Update'.

Your ready to start editing. Good luck!

Click here for a good tutorial on developing GUI's in NetBeans.



-- Main.EdSells - 07 Apr 2008