Java in Linux


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Java in Linux
# 1  
Old 10-18-2004
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?.
# 2  
Old 10-18-2004
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
# 3  
Old 10-18-2004
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.
# 4  
Old 10-19-2004
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.
# 5  
Old 10-19-2004
Just download JDK from Sun Microsystems and set it up manually.

As I said, gcj doesn't have (good) support of Swing/AWT.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

Unable to send email using Java in Linux

Hi All, We recently moved to Red Hat Enterprise Linux Server release 6.6 from Solaris 10. The existing Java code to send emails in Solaris is public class card_cardMessenger{ /** * Send an e-mail message via the Runtime class * @see Runtime * @return boolean (success or failure of... (1 Reply)
Discussion started by: Meghan2525
1 Replies

2. Linux

Linux through Java code

Hi How can I write a Java program to execute Linux commands? What is the best approach: Invoking the Linux shell within Java and executing commands or, using the Java APIs to do the stuff. Since it is platform independent, it'll know itself what to do. We need not check which OS the Java... (1 Reply)
Discussion started by: Dorothy
1 Replies

3. Programming

command linux in java code

Hello Please why the files have not created? Thank you (0 Replies)
Discussion started by: chercheur857
0 Replies

4. Programming

Running a Java program on Linux

Hello, I have a project directory in /home/researcher I have in my project/src three packages:A (contains the main class), B and C and I have 2 jar-files file1.jar file2.jar files in the project/my-jars In Class A I import other classes from the other packages I compiled as follows:... (4 Replies)
Discussion started by: chercheur857
4 Replies

5. Programming

Excel reading on Linux using Java

Hi, I have a requirement where users will send excel(.xls) file to Linux Platform using ftp/sftp. After that the excel file needs to be read using java on linux and converted into csv. I am using jxl to parse the excel, but few character like £ are not getting parsed properly. If i open the... (0 Replies)
Discussion started by: joy_bt
0 Replies

6. Android

Android is Linux (and Java)

In case you did not know, Android 2.1, Éclair, runs on the 2.6.29 Linux kernel. However, the user space it is built atop Dalvik, a Google-designed custom JVM (Java virtual machine). This is pretty interesting, when you think about it. The core of Android is the linux kernel, and the standard... (5 Replies)
Discussion started by: Neo
5 Replies

7. UNIX for Advanced & Expert Users

Tuning Java on LINUX

Hi, Need help in tuning JAVA on LINUX. From http://www.trutek.com/index.php?id=173 I understand that on Linux operating system with 4GB memory, JVM can be run with maximum memory of 3800m. But I had no luck. Could someone help me in achieving on Red Hat Linux server. Here is the details of... (5 Replies)
Discussion started by: crabbie_upk
5 Replies

8. UNIX for Dummies Questions & Answers

Linux Programming in JAvA

is it advisible to do Linux Programming in JAVA.. If so, whats the advantage over C++ or C.. Cud anyone also help me out by providing some links in this regard.. Would be highly appreciated.. (1 Reply)
Discussion started by: srikumar_cs
1 Replies

9. Linux

How do i download java 1.3 on linux(kinda have this old version)

i wish to run java files on inux but while downloading it into linux there is no problem but when i r try to execute a java file it says javac not found. help pleas (5 Replies)
Discussion started by: wojtyla
5 Replies
Login or Register to Ask a Question