Updated 2007/11/19 |
Sun Studio 12: Integrated Development Environment (IDE) Readme |
- Introduction
- About the Sun Studio 12 IDE
- New and Changed Features
- Prerequisite Software
- Starting the IDE
- Updating the IDE
- Configuration Information
- Software Corrections
- Problems and Workarounds
- Limitations and Incompatibilities
- Documentation Errata
A. Introduction
This document contains information about the Sun Studio IDE.
Product Documentation
- Release Notes: Available on the Sun Developer Network (SDN) Sun Studio portal at http://developers.sun.com/sunstudio/documentation/ss12/release_notesML.html. Information in the release notes updates and extends information in all readme files.
- Sun Studio Documentation: Product man pages, HTML versions of readmes, and manuals can be accessed from /installation_directory/docs/index.html. The default installation directory on Solaris platforms is /opt/SUNWspro. The default installation directory on Linux platforms is /opt/sun/sunstudio12.
- IDE Documentation: Online help for all components of the Sun Studio IDE can be accessed from the Help menu and Help buttons in the IDE.
- Developer Resources Portal: For technical articles, code samples, documentation, and a knowledge base, see the SDN Sun Studio portal at http://developers.sun.com/sunstudio.
B. About the Sun Studio 12 IDE
The Sun Studio 12 IDE provides modules for creating, editing, building, debugging, and analyzing the performance of a C, C++, or Fortran application.
C. New and Changed Features
- The Sun Studio 12 IDE is entirely new and includes many features not included in the Sun Studio 11 IDE, such as:
- Projects
- Code completion
- Code folding
- Class view
- Memory browser
- Registers window
- Assembler window
- Runtime checking experiments collected when running (not debugging) your program
For complete documentation of the IDE, see the online help in the IDE and the Sun Studio 12 Quick Start Guide on the Sun Studio developer portal.
- Update Notification.
The Update Notification feature periodically checks www.sun.com and communicates available changes related to your Sun Studio software, including patches and major software updates.
To view the current contents of the update file from the IDE, choose Help -> View update information.
To initiate contact with the server and get updated information, choose Help -> Check now for updates.
If Update Notification is not able to check for updates and your system is on a network with a proxy server, you can set proxy server information by doing the following:
- Choose Tools -> Options.
- In the Options dialog box, select HTTP Proxy Server.
- Type the proxy host name in the Proxy Host field and the port number in the Port field.
- Click OK.
You can also set the proxy server information using the ALL_PROXY environment variable; for example, setenv ALL_PROXY myproxy:8080
Note: You must exit and restart the IDE for the proxy server information to be recognized by the IDE.
To disable Update Notification, set the SUNW_NO_UPDATE_NOTIFY environment variable to any value other than false.
Usage information is communicated during the Update Notification process. This information is used by Sun Microsystems to improve future Sun Studio software releases. This information is anonymous and cannot be associated to any individual or organization.
D. Prerequisite Software
The Sun Studio IDE requires the following prerequisite software, which is included in the product download file and on the product DVD:
- J2SE Development Kit (JDK) 5.0, Update 9. For optimum performance, install the JDK software locally on each machine that will run the Sun Studio 12 software.
- Patches required by the JDK software. These patches are required for correct operation of the JDK software.
- NetBeans 5.5.1 IDE. For optimum performance, install this software locally on each machine that will run the Sun Studio 12 software.
- NetBeans C/C++ Development Pack 5.5.1 (for the English-only release of Sun Studio 12 software) or NetBeans C/C++ Development Pack 5.5.1 update 1 (for the multi-language release of Sun Studio 12 software). For optimum performance, install this software locally on each machine that will run the Sun Studio 12 software.
If the IDE cannot find the prerequisite software, it does not start and issues an error message indicating which software is missing. You can install missing prerequisite software using the prepare_system command. For more information, see the System Preparation Tool (prepare_system) readme.
E. Starting the IDE
The command to start the IDE is sunstudio. For details on this command, see the sunstudio(1) man page.
F. Updating the IDE
The IDE's Update Center wizard enables you to update your IDE's installed modules dynamically. When you connect to the Sun Studio Update Center, the IDE checks to see if there are new modules or new versions of already installed modules available. If new or updated modules are available, you can select, download, and install the modules you need.
To add modules from the Update Center:
- In the IDE, choose Tools > Update Center.
- On the Select Location of Modules page in the Update Center Wizard, select the Sun Studio Update Center and click Next to connect to it.
- On the Select Modules to Install page, select a module from the Available Updates and New Modules panel, and click Add to add it to the Include in Install panel. When you have selected all of the modules you want to install, click Next.
- Complete the remaining pages of the wizard to install the modules.
If you receive the Unable to Connect to the Update Center Server error message, click OK in the dialog box to close it. Then click the Proxy Configuration button in the wizard and enter a proxy host and port number. After entering the proxy information, click OK to set the values and continue with your update.
By default, the IDE periodically asks checks the Update Center for new updates. You can set the interval or disable the auto-update in the Options window.
To set the frequency with which the IDE checks for updates:
- Choose Tools > Options and do one of the following:
- Click General in the left pane of the Options window.
- Click Advanced Options in the Options window, expand IDE Configuration > System and select Update Center in the left pane.
- Select the update frequency from the Check Period drop-down list.
You can also set the following auto-update properties in the Options window:
- Ask Before Check. When selected, the IDE asks whether you want to connect to the Update Center to check for new updates.
- Show Negative Results (in Advanced Options view). When selected, the IDE indicates when there are no updates available.
To update the Chinese version of the IDE:
If you are updating the Sun Studio software for the Chinese locale, you must register the Chinese Sun Studio Update Center.
- In the Sun Studio IDE, choose Tools > Options.
- In the Options dialog box, click Advanced Options.
- In the IDE Configuration node expand the System node.
- Right-click the Autoupdate Types node and choose New > General Update Center.
- In the General Update Center dialog box, type Chinese Sun Studio Update Center.
- Expand the Autoupdate Types node, select the newly created subnode, type the URL http://gceclub.sun.com.cn/NetBeans/updates/sunstudio/sunstudio12/zh_CN/catalog.xml. in the Server URL property field, and press Enter.
- Click Close.
You have now manually registered the Chinese Sun Studio Update Center. To verify that you have done so successfully, choose Tools > Update Center. Your newly registered update center should be included in the list on the Select Location of Modules page of the Update Center Wizard.
G. Configuration Information
The NetBeans 5.5.1 IDE has a default heap size of 128 MB. The Sun Studio 12 IDE runs well with this default setting when you are developing small projects with up to 500 source and header files.
When you are developing larger projects, you will need to increase the heap size. If you get an OutOfMemory exception when developing a large project, the heap size is a likely cause.
You can set the heap size for the Java Virtual Machine (JVM)* on which the NetBeans IDE runs in the netbeans.conf file.
To change the heap size:
- Copy the netbeans.conf from the etc folder in the NetBeans installation directory into your NetBeans user directory ($HOME/.netbeans/5.5.1).
- In the netbeans.conf file in your user directory, edit the -J-Xmx command line Java startup switch (bolded below) in the netbeans.conf file, and then restart the IDE.
# command line switches netbeans_default_options="-J-Xms32m -J-Xmx128m -J-XX:PermSize=32m -J-XX:MaxPermSize=96m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true"The recommended heap sizes for NetBeans C/C++ Development Pack for medium and large applications are:
- For developing medium applications (500-2000 source and header files) on a system with 1 GB or more of RAM: 512 MB
- For developing large applications (more than 2000 source and header files) on a system with 2 GB or more of RAM): 1 GB
Do not increase the heap size to more than 1 GB.
If you are running the Sun JVM, you can also add the garbage collector switches -J-XX:+UseConcMarkSweepGC (concurrent collector) and -J-XX:+UseParNewGC (parallel collector) to the netbeans.conf file. These options allow the garbage collector to run in parallel with the main execution engine. They might not be supported by non-Sun implementations of the JVM.
For more information on NetBeans switch settings, see the Configuring the IDE section of Using NetBeans IDE 5.5
For more information on NetBeans performance tuning, see Tuning JVM Switches for Performance.
* Note: The terms "Java Virtual Machine" and "JVM" mean a Virtual Machine for the Java(TM) platform.
H. Software Corrections
No new information is available at this time.
I. Problems and Workarounds
This section discusses known software problems and possible workarounds for those problems. For updates or patches, check the updated information at http://developers.sun.com/sunstudio/support/.
J. Limitations and Incompatibilities
This section discusses limitations and incompatibilities with systems or other software. For last-minute information, see the release notes at http://developers.sun.com/sunstudio/documentation/ss12/release_notes.html
K. Documentation Errata
There is no new information at this time. Additional information might be made available at http://developers.sun.com/sunstudio/
Copyright © 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.