Did you really mean to install
j2ee, or do you want the "standard" (J2SE) Java development kit?
If you want the latter, just:
1. go to http://java.sun.com, downloads
2. Download whatever version you prefer (EXAMPLE: jdk-6-nb-5_5-linux.bin)
3. Copy it to your system and install it:
EXAMPLE:
chmod +rx jdk-6-nb-5_5-linux.bin
./jdk-6-nb-5_5-linux.bin
<= THIS SHOULD INCLUDE ALL OF THE JRE, THE JDK, AND THE NETBEANS IDE
If you want the former, you *still* need to download a JRE (as in the instructions above) ... but
you should also adjust/set the following two environment variables:
$PATH
... and ...
$JAVA_HOME
'hope that helps .. PSM
PS:
One common "gotcha" is that Linux might have Gnu Java ("gjc") somewhere in the path. Although Gnu Java and Sun Java can co-exist on the same host ... it can also complicate things. Feel free to simply delete gjc if you're not using it.
[ December 25, 2006: Message edited by: Paul Santa Maria ]