problem in installing JDK1.5.0
try to be more clear, i'm in lack of ideas in this problem.
I downloaded jdk-1_5_0-linux-i586.bin and and execute the script
and install it at path : /home/mec/jdk1.5.0
and change my .bash_profile
My bash_profile contents :-
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
# User specific environment and startup programs
complete -C complete-ant-cmd ant build.sh
.bashrc contents :
# Source global definitions
if [ -f /etc/bashrc ]; then
# User specific aliases and functions
when i type command echo $JAVA_HOME it gives :/home/rishabh/jdk1.5.0
But "type java" output is:
java is aliased to`/home/mec/j2sdk1.4.2_19/bin/java'
and "java -version" output is :
java version "1.4.2_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_19-b04)
Java HotSpot(TM) Client VM (build 1.4.2_19-b04, mixed mode)
(Note intially j2sdk1.4.2_19 was installed which i changed jdk1.5.0)
I have spend hours trying to play around with this but have got nowhere.
i want jdk1.5.0 on my system.