I did as you said and its all working.Not only is the java command working perfectly,the eclipse IDE is also running smoothly.I am still having a few problems with swing class in command mode(may be my fault,i'm trying to rectify) but its all well using eclipse.Thanks a lot for giving your valuable time for listening to a novice linux programmer like me.I never even knew I will have to set JAVA_HOME as I had to set classpath in autoexec.bat in windows.I thought the rpms are smart enough for that. Anyway a lot of thanks for the great help. ----- Original Message ----- From: "Matt Morgan" <matt.morgan@xxxxxxxxxxxxxxxxxx> To: "Kaustubh Ghosh" <meetkaustubhghosh@xxxxxxxx> Sent: Wednesday, March 17, 2004 10:19 PM Subject: oops, error in my last message to you > Step 2 should be: > ------- > 2) Add these lines to /etc/profile > > $JAVA_HOME = /usr ... (etc., whatever the path to java 1.4.2 was) > export JAVA_HOME > ------ > > That is, append the "export JAVA_HOME" line. > > >