Installing netbeans

How can I install netbeans on Solaris. Is there a package manager like yum for Fedora. I have tried pkg install netbeans, doesnt find it. Already preformed pkg install slim_install and it installed the jre. However if I run the sh file downloaded for netbeans it says no compatible JDK found.
Now in the /usr folder I have j2se java1.2 java and jdk folders.
I tried using the jdk folder and multiple directories with in it with no luck. Completely new to Solaris and Unix not really sure what file Im looking for or where it would be located.

Sort of. pkgadd installs packages, and the java jdk package is all you need.

This page has the current java version, jdk, jre and all you need.

Java SE 6 Platform Installation

Edit: forgot pkginfo - shows the installed packages

In case that you need to install additional features that not included in JDK + netbeans package (SE), it is possible to install JDK and then install netbeans.
here are possible bundles of netbeans: Apache NetBeans Releases.
If you want easy install, you can install netbeans bundled with JDK and then upgrade to full version or version that has additional features that you need to use.