Newbie question, how to run SUN Studio 11 from the terminal?

I am running SUN Studio 11, under Solaris 9, the first thing I did, was to run the tutorial, it worked fine.

Then I tried, doing a simple counting program that displays the digits form 1 to 10, one per line. I did exactly as the the tutorial says, by the way this is a "c" program. Then when I reach the point, of executing the program, there is a window, that pops, and it has room for three things, but only allows me to use two as follows:

Executable:/export/home/alfonso/Programs C and C++/Sun-sparc-Solaris/firstProgram.out

Run Directory:/export/home/alfonso/Programs C A and C++/Sun-sparc-Solaris/

Then when I click OK, a message that says "Unexpected Exception" appears.

Then, if I close SUN Studio 11, and go to the directory "Sun-sparc-Solaris", there is an executable file, that when I run it, displays the numbers from 1 to 10, as I wanted

My problem, is how to get rid of the message "Unexpected Exception"?

How can I run SUN Studio 11, from Terminal, without using the IDE?

Thanks.

Alfonso

[1063 byte] By [urrozalfa] at [2007-11-26 16:23:21]
# 1
Make sure that your PATH is correct (which normally means that it includes /opt/SUNWspro/bin and /usr/ccs/bin). Then run 'sunstudio' for the IDE, or from a shell, 'make' (or 'cc' directly).PaulMessage was edited by: pjfloyd
pjfloyda at 2007-7-8 22:47:09 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

To fix the problem with the IDE you might try using a directory name

without any spaces in it. This looks like a bug in the IDE.

You can compile from the command line using the 'cc' command, and

you can debug from the command line using the 'dbx' command.

To be able to execute these commands make sure your PATH

variable is set right as the previous person said.

--chris

ChrisQuenellea at 2007-7-8 22:47:09 > top of Java-index,Development Tools,Solaris and Linux Development Tools...