Articles
Server and Storage Development
by Igor Nikiforov
Published May 2012
Introducing the IDE Desktop DistributionSun Studio 12 Update 1 introduced a unique remote development feature that allows you to run just one instance of the IDE while working with multiple servers and platforms. For example, you could run the IDE on an x86-based laptop or desktop running Oracle Linux, and use a SPARC-based server running Oracle Solaris 10 to compile, run, debug, and profile your code. The IDE works seamlessly just as if you had the Oracle Solaris operating system on your laptop or desktop.
|
In Oracle Solaris Studio 12.3, a new feature lets you create a special distribution of the IDE and Code Analyzer that is designed to run on user desktop systems, such as Microsoft Windows, and access remote servers running Oracle Solaris or Linux operating systems. The IDE and Code Analyzer desktop distribution tools run on your desktop system and connect to compilers and tools running on a remote Oracle Solaris or Linux system, enabling you to do full-fledged development on that remote system. You can think of the desktop distribution as IDE and Code Analyzer tools that are specially tuned to work in remote mode (source files residing on the desktop system) and full remote mode (source files residing on the remote system).
You can run a desktop distribution of the IDE on a system that has one of the following operating systems and the Java SE Development Kit (JDK) 6 Update 24 or later installed.
If you have ever experienced slow response from the IDE running on a server that was heavily used and shared among a large development group, then you will want to try the desktop distribution. The desktop distribution provides advantages if you are in one of the following situations:
You can create your desktop distribution in several ways:
The IDE is always included in the distribution. If you have the Code Analyzer installed, it is also included in the distribution.
To create the desktop distribution from the IDE, do the following:

Figure 1. IDE Window Showing Create Desktop Distribution Menu Item

Figure 2. Choose Where to Save the Desktop Distribution Archive Should Be Saved

Figure 3. Desktop Distribution Successfully Created
When you unzip the desktop distribution zip file on your desktop system and start the IDE, it will recognize the server on which you generated it as a remote host and, by default, use the Oracle Solaris Studio compilers and tools on that host.
You can create the desktop distribution zip file by using the solstudio command on a system where Oracle Solaris Studio 12.3 is installed.
% solstudio --generate-desktop-distr path [--userdir path | --without_user_data]
If you specify the --userdir option, the desktop distribution of the IDE that is generated includes the user profile data (IDE settings and open projects) from the specified user directory. You should specify this option if your user directory is not stored in the default location and you want to include the user profile data.
Tip: To determine the location of your IDE user directory, choose Help -> About in the IDE. The About window shows the userdir path as well as the version of Oracle Solaris Studio, Java, and the operating system.
If your user directory is at the default location, the user profile information is included automatically in the desktop distribution even if you do not specify the --userdir option. In the Oracle Solaris Studio 12.3 release, the default user directory location is $HOME/.solstudio/ide-12.3-platform-arch.
If you specify the --without-user-data option, the generated desktop distribution does not include any user profile data.
For example, the following command creates the desktop distribution file /shared/distros/dd.zip after collecting the user profile information from studiodir in your home directory.
% solstudio --generate-desktop-distr /shared/distros/dd.zip --userdir $HOME/studiodir
You can generate the desktop distribution zip file when you install Oracle Solaris Studio 12.3 with the package installer in Oracle Solaris 10.
lib directory in your Oracle Solaris Studio installation.-generate-desktop-distr option when you start the installer. The generated desktop distribution zip file is placed in the lib directory in your Oracle Solaris Studio installation.Note: The default installation directory is /opt/solarisstudio12.3 on Oracle Solaris platforms and it is /opt/oracle/solarisstudio12.3 on Linux platforms.
The desktop distribution generated by the installer does not contain any IDE settings or open projects, but when you unzip it and run the IDE on your desktop system, the IDE will recognize the server on which you generated the distribution as a remote host, and it will access the tool collection in your Oracle Solaris Studio installation.
To install and use the desktop distribution, do the following:
solstudio/bin directory in the location where you unzipped the file.solstudio command on Linux and Mac OS X systems or using the solstudio.exe command on Microsoft Windows systems.codeanalyzer/bin directory using the codeanalyzer command on Linux and Mac OS X systems or using the codeanalyzer.exe command on Microsoft Windows systems.Now you can simply continue your development as if the IDE was running on a server, but with much better response time. The remote server where you created the desktop distribution is already configured in the IDE as the default build host. All your open projects and files, and recent projects and files, are known to the IDE, just as they were when you ran the IDE on the server. You can choose File -> Open Remote C/C++ Project and File -> Open File From to access and use files and projects that are located on the remote server.
See the following resources for more information:
Igor Nikiforov has been working for Oracle and Sun Microsystems for more than four years. His current responsibilities include development of the Oracle Solaris Studio IDE and NetBeans. Before Oracle, Igor developed enterprise applications including some municipal IT projects for the city of Saint Petersburg, Russia.
| Revision 1.0, 05/23/2012 |
See sysadmin-related content for all Oracle technologies by following OTN Systems on Facebook and Twitter.