The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sun Java Platform, Standard Edition 1.5.0_15 (Java 5 branch) iBot Software Releases - RSS News 0 03-06-2008 02:50 PM
Using Subversion, NetBeans IDE, and Sun Java System Web Server With Java ME iBot UNIX and Linux RSS News 0 02-01-2008 02:00 PM
Tuning Java on LINUX crabbie_upk UNIX for Advanced & Expert Users 5 07-02-2007 10:05 AM
Linux Programming in JAvA srikumar_cs UNIX for Dummies Questions & Answers 1 06-18-2007 02:40 PM
How do i download java 1.3 on linux(kinda have this old version) wojtyla Linux 5 02-18-2005 05:55 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-18-2004
Registered User
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 156
Question Java in Linux

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?.
Reply With Quote
Forum Sponsor
  #2  
Old 10-18-2004
Registered User
 

Join Date: Mar 2002
Location: London, England
Posts: 262
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
Reply With Quote
  #3  
Old 10-18-2004
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,476
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.
Reply With Quote
  #4  
Old 10-18-2004
Registered User
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 156
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.
Reply With Quote
  #5  
Old 10-18-2004
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,476
Just download JDK from Sun Microsystems and set it up manually.

As I said, gcj doesn't have (good) support of Swing/AWT.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:00 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0