1Setting Up NetBeans IDE for Java Projects CS288, Autumn 2005 Purpose This short document leads you through how to set up NetBeans for the first Lab exercises. By the end of the document you should have initialised the necessary folders and compilation settings for a Java project within the NetBeans environment. Setting Up Folders Select new project: Select Java Application from dialog: 2Choose appropriate folders to use as your project repository: Click Finish. After this you should have a window that looks something like this: 3NetBeans has now set up some default folders and written a template to contain your source code. This is a complete Java program, but as yet has no functionality. Renaming Default Class for Project Next right click on the Main.java node in the projects tab view: 4Change the name to Building by choosing the Refactor then Rename options: 5Then click next. Then click on ‘Do Refactoring’: The IDE should now be showing the renamed class in the projects view: Creating Distribution Folder, Checking Compilation Select the Clean and Build Main Project option from the top toolbar. This will create the distribution folder and set up the initial Jar file (which doesn’t do anything yet as we haven’t written any code). 6A new Output window will appear at the bottom of the main NetBeans window showing that the compilation has been successful. You should see something like this in the new window: Summary You have now set up NetBeans for the first Lab exercises. • NetBeans has initialised the necessary folders to contain the source code, the compiled class files and the final Jar file. • NetBeans has set up a template for defining a Building class, which includes a default constructor and main method. • NetBeans has successfully completed the first build of the project, which at present has no meaningful functionality.