Solaris machine is at # prompt not able to login in GUI mode

Solaris machine is at # prompt not able to login in GUI mode :

I want to login solaris server in GUI mode from # prompt.

---------- Post updated 12-30-11 at 11:36 AM ---------- Previous update was 12-29-11 at 02:23 PM ----------

Hi,

Please send me some guidelines regarding this....
as i want to login machine to resolve other issues also ......................

It's hard to tell without any clue.

Is it a first installation or graphic login was previously working ?
What Solaris release ?
What architecture x86 or SPARC ?
Any error message ?
Any recent change ?

if /.profile exists -- rename or remove it ...