X Windows Configuration Setup for Using Sun Studio IDE

The document Sun Studio contains an overview of Sun Studio and information on its use that should be read prior to reading this document.

This document assumes that you have already modified your UNIX configuration files as described in the document Getting Started with Sun Studio IDE: Setting Up Your UNIX Account . Further modifications to these configuration files, described below, will facilitate your use of Forte in an X Windows environment.

Launching Sun Studio IDE

When you are connected to Strauss from a X Window system.  The following commands will start a shell, launch the Sun Studio IDE and then exit.

studioshell
sunstudio &
exit

The first time you run Sun Studio you should see this screen "Welcome" screen:



Click on the Setup Wizard to conifigure your IDE:

Choose the Swing HTML browser.  Click Next >

The built in text editor is the best for new users.  If you are already an expert in using emacs, or vi you may choose the Xemacs or GVim options.
Click Next >

Enable the Java module by setting the value in the Java row to "True".  All the other modules are enabled by default.  Click Finish.


Possible error message and warnings:

Modifing your .alias file

Add the following lines to the file called ~/.alias, which may not exist. These lines will create two new commands. The command studio will launch the Sun Studio IDE, and  studiostrauss will launch

Sun Studio IDE on Strauss. The command studio will only work on Strauss; studiostrauss will work on any Unix machine with ssh X tunnelling enabled. 
if $?DISPLAY then
alias studio "(setenv NEED_STUDIO; csh -c sunstudio)"
alias studiostrauss\
ssh -Y -f strauss.udel.edu 'setenv NEED_STUDIO\; csh -c sunstudio'
endif
These two new commands will automatically become defined when you start a new shell or open an new xterm window.

Connecting to Strauss from your local desktop

From your local desktop system
Start an X11 windows server
Local X Windows desktops such as, Gnome, KDE or CDE are based on X11 so you should not start a new X11 server. A Windows PC needs Hummingbird's Exceed X11 server. A Mac OS X desktop needs the optional X11 Package from Apple.
Use an SSH client to connect to Strauss
Type ssh -Y username@strauss.udel.edu replacing username with your UDelNet ID. The ssh -Y options was introduced with openSSH 3.8.  If you get an error message with this command on your machine used the older -X option.  On a Windows PC use the University-supplied SSH client to connect to Strauss with X11 tunnelling enabled, and there is no need to type this command.
Use the above alias to open the  Sun Studio IDE window.
studio

These last two steps can be accomplished with one command:

ssh -Y -f username@strauss.udel.edu 'setenv NEED_STUDIO; csh -c sunstudio'
Use this command to customize your desktop for quickly launching Sun Studio  on Strauss.
[Back to Sun Studio home page]

Last modified: January 9, 2006
This page maintained by Dean Nairn
Copyright © University of Delaware, 2005.