Jdk 1.2.2 (Sun) is not compatible anymore with Linux Red Hat 7.0 (!!!) It crashes (Segmentation fault) when javac or java are run in the command line. (It is ok with Linux Red Hat 6.2) Jdk 1.3 can be run normally. But products like JBuilder 4 (working with Jdk 1.3), ok with red hat 6.2, can't be installed (Segmentation fault again) with red hat 7.0
Almost certainly a glibc issue. Make sure you install the errata glibc package.
There was a bug fixed in glibc which was seen by JDK segfaults. What does rpm -q glibc say? You should use glibc-2.2-5.
Closed due to inactivity.