Guys follow my procedure:
@Mehul, You have to add the path of Sun's JDK to the '.bash_profile' (it's a hidden file)
Java is installed in the directory '/usr/java/jdk1.5.0/bin'. Add it to the PATH environment variable.
I have worked in Mandriva Linux using Sun's JDK & Forte Java IDE a few years back.
@Unni,
'java-1.4.2-gcj' should not be installed!! Uninstall it first.
You need to install Sun's Java JDK 1.5.0. Download it from
here
Select
JDK 5.0 Update 9 Click on 'Download' button. You must select the
Linux RPM in self-extracting file ->
jdk-1_5_0_09-linux-i586-rpm.bin
Installing Java JDK in Mandriva Linux:
Open the Terminal Window & type:
$
su -
(Enter root password)
#
cd <directory where you saved Java JDK>
# ./
jdk-1_5_0_09-linux-i586-rpm.bin
You'll get the License agreement, press the "Spacebar" to move to the next page.
To accept the License Agreement , type 'y'. Java JDK will be uncompressed &
installed in the directory '/usr/java'
The '.bash_profile' file is a hidden file in your '/home/mehul' directory. I assume
mehul as the login name. Now add the
:/usr/java/jdk1.5.0_09/bin to the
PATH environment
variable. Save the file. Logout & login for the changes to take effect. That's all.
Open the Terminal Window & type:
$
Java
Now start the Eclipse IDE. Everything will work perfectly!!