DOes any1 know if the java.awt and javax.swing packages are
installed in Redhat Linux 9.0 or not??. I have compiled a simple Java program and ran it but the Java programs related to GUI are not working. Can any1 provide some Help?.
to check if any package is installed on redhat issues
rpm -qa | grep "package_name"
e.g
rpm -qa | grep java
the above will show any java package instlled
I don't think any packagers would bundle AWT/Swing separately because they are part of the foundataion classes ...... and actually (as in Sun's distribution) they are bundled in a single JAR file together with the other classes (in my distribution, that is rt.jar).
And a sidenote, make sure the java executable doesn't point to "gcj", as only a small subset of its JFC is implemented (no AWT/Swing etc.) I know some distributions use this GNU Java compiler as the default (because of potential licensing issues) where some classes are simply missing or are not implemented. This is a likely reason why you are unable to compile programs using GUI classes.
Yes the java executable is pointing to gcj. SOo what should i do so that i get these other packages of Java installed in my Redhat Linux 9.0.
Just download JDK from Sun Microsystems and set it up manually.
As I said, gcj doesn't have (good) support of Swing/AWT.