Badri,
We would love to help you, but you need to
show some effort, and
tell the details.
Right now:
we can't tell if you have been given an executable jar file to run, a compiled class file, or whether you are working with the source code. we can't tell if you are comfortable with working from a shell (and if so, are you using the bash shell) or are you looking at the X Windows System (probably running the Gnome window manager since that is default on Fedora Core 6) and trying to work out what to do next we can't work out whether you are using the JDK that comes with Fedora Core 6 (GCJ - roughly equal to Sun's JDK version 1.4) or whether you have installed a later version (hopefully from Sun's site). we can't tell whether you are familiar with editing files on Linux systems - are you happy to use vim or emacs (or their X11 equivalents) or kedit or kate or ....? Do you see why it is so hard to even start helping you?
As an aside, some people look at these sorts of issues and try and claim that Linux is a failure. Not so. The first point would still have to be established before we could begin. The 2nd and last points become
slightly easier under Microsoft Windows since they do not give you options - you
will use cmd.exe, and notepad.exe is the only consistent editor we can talk about. And since Microsoft do not distribute anything like a Java compiler, you will have had to have downloaded from Sun - whereas Linux tries to give you a Java compiler from the moment you complete your installation, even if it is not the official release.
Regards, Andrew