How to install gnome in solaris

How to install gnome in solaris 9 and 10, how to enable java environment in solaris 9 and 10.

Thanks in Advance

Gnome is already there in Solaris 10, customized as JDS.
The JDK is bundled with both Solaris 9 and 10.

You can install gnome on Solaris 9 from Sun or various freeware sources:
Get the Software
gnome data