Sun Java Studio Creator 2 Update 1 – Online Help
 

Project Tasks: Quick Reference

See Also

This topic describes common tasks that you can perform with projects. For more detailed information, click the links in the right column.

To perform this task Follow these steps
Add bean properties to a project's managed beans
  1. In the Projects window, right-click the managed bean's node, such as the Session Bean node, and choose Add > Property.
     
  2. In the New Property Pattern dialog box, customize the code to be generated for the property.
     
  3. Click OK to generate the property and the property's methods for the selected managed bean.
     
Add cascading style sheet to a project
  1. From the main menu, choose File > Add Existing Item > Style Sheet.
     
  2. Use the dialog to navigate to the file's location, and then select the file and click OK.
     
Add images to a project
  1. From the main menu, choose File > Add Existing Item > Image File.
     
  2. Use the dialog box to navigate to the file's location, and then select the file and click OK.
     
Add items to a project
  • To create a new item:
    1. In the Projects window or the Files window, right-click the node to which to add the item and choose New > item-type.
       
    2. Proceed through the wizard.
       

     
  • To add an existing item:
    1. Choose File > Add Existing Item > Item-type.
       
    2. Locate the file to add and click OK.
       

     
Add library references or JAR files to a project
  1. In the Projects window, right-click the Libraries node and choose Add Library.
     
  2. In the Add Library dialog box, select the library reference.
     
  3. Click Add Library.
     
Add themes to a project
  1. In the Projects window, right-click the Libraries node and choose Add Library.
     
  2. In the Add Library dialog box, click Manage Libraries.
     
  3. In the Library Manager dialog box, click New Library.
     
  4. In the New Library dialog box, enter the theme name and choose the Theme Libraries as the library type.
     
  5. In the Classpath tab of the Library Manager, add the theme JAR file.
     
Build a project
Clean a project
Compile a single file
  1. In the Projects window, navigate to the file and right-click it.
     
  2. From the main menu, choose Build > Compile file-name.
     
Copy a project
  1. In the Projects window, right-click project-name and choose Save Project As.
     
  2. In the Save As dialog box, type the name of the copy.
     
Create a library reference
  1. From the main menu, choose Tools > Library Manager.
     
  2. In the Library Manager dialog box, click New Library.
     
  3. In the New Library dialog box, enter the library name.
     
  4. Choose the library type and click OK.
     
  5. Click Add JAR File/Folder to browse for and add JAR files to the library reference.
     
  6. Click OK.
     
Create a project
  • Choose File > New Project and step through the wizard.
     
Create a project from a template
  1. Choose File > New Project or, in the Welcome window, click Create New Project.
     
  2. In the New Project wizard, select the My Templates folder.
    If My Templates is not in the New Project wizard, then you haven't saved any projects as templates yet.
     
  3. In the Projects list box, select the template to use.
     
  4. Proceed through the wizard to determine where to create the new project from the template.
     
Create a project item from a template
  1. In the Projects window, right-click the node for the item you want to create, such as resources, and choose New > All Templates.
     
  2. In the New Wizard, select the template.
     
  3. Enter the item name and click Finish.
     
Create a template from a JSF or portlet project
  • To save a JavaServer Faces or portlet project template as a template:
    1. In the Projects window, right-click the project from which you want to create a template and choose Save Project As.
       
    2. In the Save Project As dialog box, select Add Project to Template List and click OK.
       

     
  • To add an existing JavaServer Faces or portlet project as a template:
    1. From the main menu, choose Tools > Project Template Manager.
       
    2. In the Project Template Manager, click Add.
       
    3. In the Open Project dialog box, select the project to add to the template list and click OK.
       

     
Create a template from an item in a project
  1. In the Projects window or Files window, right-click the item from which you want to create a template, such as Page1.jsp, and choose Save As Template.
     
  2. In the Save as Template dialog box, select the template's category and click OK.
     
Debug a project
Delete a library reference
  • To remove a library reference from a project:
     
  • To delete a library definition from the IDE:
    1. Choose Tools > Library Manager.
       
    2. In the Library Manager, right-click the library definition to delete and choose Delete Library Definition.
       
      The library definition is deleted from the IDE. If you are using the JAR files referenced by the library reference in any project, errors appear during compile time.
       

     
Delete a project item
Delete a project template
  1. Choose Tools > Project Template.
     
  2. In the Project Template Manager, click Remove
     
Delete an item template
  1. Choose Tools > Options.
     
  2. Select the Advanced View.
     
  3. Scroll down and expand Source Creation and Management > Templates > Template-folder-name.
     
  4. Right-click the template and choose Delete.
     
Deploy a project
Export a WAR file
  1. In the Projects window, right-click the project and choose Export WAR File.
     
  2. In the Export WAR dialog box, choose the Java specification to which your target container conforms.
     
  3. Enter the location to which to export the WAR file.
     
Find files, text strings, and objects in a project
  1. In the Projects window, right-click the project or any folder and choose Find.
     
  2. Enter the search criteria.
     
Generate Javadoc
  • Choose Build > Generate Javadoc for Project.
     
Modify a library reference
  1. Choose Tools > Library Manager.
     
  2. In the Library Manager dialog box, select the library in the Libraries list box.
     
  3. Add, remove or change the order of the files.
     
Open a project
Run a project
Save a project
  • Choose File > Save All.
     
Set current theme
  1. In the Projects window, open the Themes node.
     
  2. Right-click the theme and choose Set as Current Theme.
     
Set location where project files are created
  1. Choose Tools > Options and select the Basic view.
     
  2. Scroll down and select Project Settings.
     
  3. In the Properties node on the right side of the window, click the ellipsis button (...) next to Default project folder.
     
  4. In the Default Project Folder dialog box, browse to the location where you want to create new projects.
     
Set main project In the Projects window, right-click the project node and choose Set Main Project.
Set project properties
  1. In the Projects window, select the project.
     
  2. In the Properties window, set the properties.
     
Set start page
Use a project template
  1. Choose File > New Project or, in the Welcome window, click Create New Project.
     
  2. In the New Project wizard, select the My Templates folder.
    If My Templates is not in the New Project wizard, then you haven't saved any projects as templates yet.
     
  3. In the Projects list box, select the template to use.
     
  4. Proceed through the wizard to determine where to create the new project from the template.
     
Use an item template
  1. From the main menu, choose File > New Item.
     
  2. In the New Wizard, select the template.
     
  3. Enter the item name and click Finish.
     
Use version control See About Version Control.
See Also
About Projects
About the Projects and Files Windows
Working With Projects
 
 
 
Legal Notices. Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Close