| Updated 2005/11/01 |
Sun[tm] Studio 11: Integrated Development Environment (IDE) Readme |
- Introduction
- About the Sun Studio 11 IDE
- New and Changed Features
- Supported Source Code Control Software
- Components of the Sun Studio 11 Software
- Ensuring That the IDE Operates Correctly in a Client/Server Installation
- Ensuring That the IDE Can Find the Core Platform
- Ensuring That the IDE Can Find the Correct J2SE Technology
- Starting the IDE
- 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 for Solaris Platforms: Available on the Sun Developer Network (SDN) Sun Studio portal at http://developers.sun.com/sunstudio/documentation/ss11/release_notes.html. Information in the release notes updates and extends information in all readme files.
- Release Notes for Linux Platforms: Available on the SDN Sun Studio portal at http://developers.sun.com/sunstudio/documentation/ss11/Linux_release_notes.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/sunstudio11.
- 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/prodtech/cc.
B. About the Sun Studio 11 IDE
The Sun Studio 11 IDE provides modules for creating, editing, building, debugging, and analyzing the performance of a C, C++, or Fortran application. It includes a set of basic Java[tm] language support modules that can be enabled if needed for JNI (Java[tm] Native Interface) development.
This release of the IDE is available on the following platforms:
- Solaris[tm] Operating System (Solaris OS), versions 8, 9, and 10
- Linux operating system:
- SuSE Linux Enterprise Server 9 (en locale only, not supported in ja and zh locales)
- Red Hat Enterprise Linux 4
C. New and Changed Features
- 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 -> Setup Wizard.
- In the wizard, select the Use HTTP Proxy Server checkbox.
- Type the proxy host name in the Proxy Server Name field and the port number in the Port field.
- Click Finish.
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. Supported Source Code Control Software
The Sun Studio 11 IDE supports the following source code control software:
- CVS 1.11
- PVCS 6.7.00
E. Components of the Sun Studio 11 Software
The Sun[tm] Studio 11 software consists of two major components:
- The Sun Studio component, which includes the IDE, compilers (on Solaris platforms only), tools, and core platform
- The Java[tm] 2 Platform, Standard Edition v 1.4.2_08 (J2SE) technology on which the core platform runs
The IDE, compilers, and tools are installed by default in the /opt/SUNWspro directory on Solaris, but an alternate location can be specified during installation. The IDE and tools are installed in the /opt/sun/sunstudio11 directory on Linux platforms, but an alternate location can be specified during installation.
The core platform is installed by default in the /opt/netbeans/3.5V11 directory on Solaris platforms, but an alternate location can be specified during installation. The core platform is installed by default in the /opt/sun/netbeans/3.5V11 directory on Linux platforms, but an alternate location can be specified during installation.
On Solaris platforms, the J2SE 1.4.2_08 technology or the 32-bit J2SE 5.0 Update 3 technology is installed by default in the /usr/jdk/j2sdk1.4.2_08 directory or /usr/jdk/jdk1.5.0 directory, but an alternate directory in /usr can be specified during installation. On Linux platforms, the J2SE 1.4.2_08 technology is installed by default in the /usr/java/j2sdk1.4.2_08 directory; but an alternate directory in /usr can be specified during installation.
The correct operation of the IDE depends on the IDE being able to find the core platform, and the core platform being able to find the J2SE technology.
F. Ensuring That the IDE Operates Correctly in a Client/Server Installation
The Sun Studio 11 software can be installed on a server. To ensure that the IDE can find the core platform when you start the IDE from a client system, you must mount the directories that contain the IDE and the core platform from the server if they are not installed on the client system.
For convenience, both the IDE and the core platform are installed in the same base directory, so you can use a single mount point on the client system for both.
Note: If the mount point on the client system is the default installation directory, it might hide the installation of other software on the client system. In this case, do not mount the /opt directory. Instead, on Solaris platforms, mount the /opt/SUNWspro directory and /opt/netbeans directory separately. On Linux platforms, mount the /opt/sun/sunstudio11 directory and /opt/sun/netbeans separately.
G. Ensuring That the IDE Can Find the Core Platform
The sunstudio command that starts the IDE looks for the core platform in two locations:
- The command looks first in the default installation directory, /opt/netbeans/3.5V11 on Solaris platforms and /opt/sun/netbeans/3.5V11 on Linux platforms.
- If the command does not find the core platform in the default directory, it assumes that the directory that contains the IDE and the directory that contains the core platform are both installed in or mounted to the same location. For example, on Solaris platforms, if the path to the directory that contains the IDE is /foo/SUNWspro, the command looks for the core platform in /foo/netbeans/3.5V11. On Linux platforms, if the path to the directory that contains the IDE is /foo/sunstudio11, the command looks for the core platform in /foo/netbeans/3.5V11.
If the core platform is not installed or mounted to either of the locations where the sunstudio command looks for it, then each user on a client system must set the environment variable SPRO_NETBEANS_HOME to the location where the core platform is installed or mounted (installation_directory/netbeans/3.5V11).
On Solaris platforms, each user of the IDE also must add /installation_directory/SUNWspro/bin to their $PATH in front of the path to any other release of Forte Developer software, Sun ONE Studio software, or Sun Studio software. On Linux platforms, each user of the IDE also must add /installation_directory/sunstudio11/bin to their path in front of the path to any other release of Sun Studio software.
Note: The path /installation_directory/netbeans/3.5V11/bin should not be added to the user's $PATH.
H. Ensuring That the IDE Can Find the Correct J2SE Technology
The IDE requires the J2SE 1.4.2_08 technology or the 32-bit J2SE 5.0 Update 3 technology. Each client system must have one of the following:
- J2SE 1.4.2_08 technology or 32-bit J2SE 5.0 Update 3 technology installed on the system
- Network access to the path where the J2SE 1.4.2_08 technology or 32-bit J2SE 5.0 Update 3 technology is installed
To determine whether a valid technology is installed in a standard location on your local system or is in your $PATH, type:
checkjavaIf the checkjava command finds a valid J2SE technology, the output of the command is:
Using J2SDK version version from pathIf you receive this output, you have the required J2SE available to your system, and the IDE will find it.
If the command does not find a valid J2SE technology, the output of the command is:
Could not find valid J2SDK in $PATH or in a standard locationIn this case, you have several choices:
- Install the J2SE 1.4.2_08 technology provided with the product on your local system. For instructions, see the Sun Studio 11 Installation and Setup Guide for Solaris Platforms or the Sun Studio 11 Installation and Setup Guide for Linux Platforms.
- Ask your system administrator for the path to the J2SE 1.4.2_08 technology or the 32-bit J2SE 5.0 Update 3 technology installed on the network. If such a path is available, do one of the following:
- Add the path to the J2SE 1.4.2_08 technology or the 32-bit J2SE 5.0 Update 3 technology on the network to your $PATH.
- Use the --jdkhome option to the sunstudio command to specify the path to the J2SE 1.4.2_08 technology or the 32-bit J2SE 5.0 Update 3 technology on the network. For more information, see the sunstudio(1) man page. (To display the sunstudio(1) man page, you must have /installation_directory/SUNWspro/man in your $MANPATH on Solaris platforms, and /installation_directory/sunstudio11/man in your $MANPATH on Linux platforms.)
- Set the JDK_HOME environment variable to the path to the J2SE 1.4.2_08 technology or the 32-bit J2SE 5.0 Update 3 technology on the network.
I. Starting the IDE
The command to start the IDE is sunstudio. For details on this command, see the sunstudio(1) man page. (To display the sunstudio(1) man page, you must have /installation_directory/SUNWspro/man in your $MANPATH on Solaris platforms, and /installation_directory/sunstudio11/man in your $MANPATH on Linux platforms.)
The sunstudio command requires that you have the GNU Bourne-Again shell (bash)software, no earlier than version 2.05.0(1), installed in /bin/bash, as it is in the standard installation of the Solaris OS, versions 8 (except for the Developer System), 9, and 10. If you have a custom installation of the Solaris OS, check to be sure that you have the required shell by typing ls /bin/bash.
If you are running the Solaris 8 OS Developer System, you can install the SUNWbash package from the Solaris 8 CD2. Or you can download bash from http://www.sunfreeware.com by selecting the appropriate processor and OS in the menu on the right, and then selecting bash-3.0.
J. Software Corrections
This section describes problems that were fixed in the Sun Studio 10 update 1 re lease of the IDE.
No new information is available at this time.
K. 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/.
- External Browser Might Not Start or Display Requested Link
- The New Breakpoints dialog often is not correctly seeded with the current file and line information when using the external editors GVim or XEmacs
- Sometimes get a FileStateInvalidException when startin g to debug an executable
- Closing and reopening the Output window causes tabs to disappear
- GVIM Corrupts File That Has Multibyte Characters
- XEmacs Corrupts File That Has Multibyte Characters
- GVIM Crashes On Find or Find and Replace
- Setting a Breakpoint Does Not Highlight Correct Line in GVIM
- GVIM Writes Multibyte Contents Over Other Strings< /A>
External Browser Might Not Start or Display Requested Link
If you choose the Compiler/Tools Documentation item on the Help menu, or click the link for the Developer Portal in the Welcome screen, the IDE might not successfully start your external browser or use an external browser you are already running to display the documentation index or the Developer Portal.
Workaround:
Start your external browser outside the IDE and use the following URLs:
- For the documentation index page for the Sun Studio 10 for Solaris platforms or Sun Studio 10 for Linux platforms product, which has links to all o f the man pages, readmes, and manuals, use installation_directory/SUNWspro/docs
- For the Developer Portal for Sun Studio, which provides code samples, technical articles, knowledge base items, and documentation, use http://developers.sun.com/sunstudio/.
The New Breakpoints dialog often is not cor rectly seeded with the current file and line information when using the external editors GVim or XEmacs (4981442)
When the New Breakpoints dialog is displayed, it is supposed to have the Breakpoint Type set to File:Line and the File and Line text fields set according to the cursor in the editor. In many cases, the File and Line fields are blank when the dialog is displayed, so that you must type in the file and line information.
Workaround:
There are three ways to display this dialog. If you display it from the Breakpoints view in the Debugger window you almost never see File and l Line information. If you display it from an external editor (GVim or XEmacs) using Shift+Ctrl+F8, File and Line information is correctly set. If you display the dialog from the Debug menu, it depends on where you last typed or clicked in the IDE windows.
Sometimes get a FileStateInvalidException when starting to debug an executable (4960929)
If you get this exception when starting the debugger, you also get a bad window layout. Exit the IDE and restart.
Closing and reopening the Output window cause s tabs to disappear
If you are running a single debugging session and you close the Output window and subsequently reopen it, the reopened window has only the Output tab.
Workaround:
Terminate your debugging session and start a new one, and the Output window will have all of its tabs.GVIM Corrupts File That Has Multibyte Characters (6203574)
When GVIM is started from the Sun Studio IDE in the C locale, GVIM corrupts files that contain multibyte characters. Multibyte characters in a file are replaced with question marks.
XEmacs Corrupts File That Has Multibyte Characters (6203595)
When XEmacs is started from the Sun Studio IDE in the C locale, XEmacs corrupts files that contain multibyte characters. Multibyte characters in a file are replaced with question marks.
GVIM Crashes On Find or Find and Replace (5078 549)
When GVIM is started from the Sun Studio IDE in the Chinese (zh) locale , GVIM crashes when you choose Edit -> Find or Edit -> Find and Replace.Setting a Breakpoint Does Not Highlight Correct Line in GVIM (6205511)
When GVIM is started from the Sun Studio IDE in the Japanese (ja) locale, and you set a breakpoint, GVIM does not highlight the correct line in the source file.
GVIM Writes Multibyte Content Over Other Strings (4985433)
When you run GVIM in the Japanese (ja) locale or the Chinese (zh) locale, you cannot save multibyte contents because GVIM overwrites other strings with the multibyte characters.
L. Limitations and Incompatibilities
This section discusses limitations and incompatibilities with systems or other software. For last-minute information, see the release notes for Solaris platforms at http://developers.sun.com/sunstudio/documentation/ss11/release_notes.html and the release notes for Linux platforms at http://developers.sun.com/sunstudio/documentation/ss11/Linux_release_notes.html
The Sun Studio 11 IDE has the following limitations:
- The following features of the dbx Debugger are not available on Linux platforms:
- Fix and continue
- Runtime checking
- Performance data collection using the dbx collector command or the Collector dialog (But you can collect performance data with the collect command or the Collector window in the Performance Analyzer.)
- Exception breakpoints
- Fault breakpoints
- System call breakpoints
- Process event breakpoints (You cannot set process event breakpoints in the New Breakpoint dialog box. You can set breakpoints on the exit, next, step, stop, gone, and syncrtld events from the dbx command line in the Debugger Console tab of the Output window.
- Debugger event breakpoints (You cannot set debugger event breakpoints in the New Breakpoint dialog box. You can set breakpoints on the attach and detach events from the dbx command line in the Debugger Console tab of the Output window.
- The following features of the dbx Debugger are not available on the Linux OS on x64 based systems:
- Java debugging
- Debugging 32-bit programs
- Run-time type information for C++ expressions is not available for programs compiled with the g++ compiler.
- See the dbx Readme for information on limitations on debugging multithreaded programs on Linux platforms.
- The memory access checking feature of runtime checking is not available on Solaris OS on x86 based systems.
M. Documentation Errata
There is no new information at this time. Additional information might be made available at http://developers.sun.com/sunstudio/
Copyright © 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.