• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Unistall Jdk1.4 in linux machine

Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
I am using Linux machine(not a GUI).
I have installed jdk1.4 linux version in my system.
now i want to install jdk1.5 linux.I got bin file already from java.sun.com.

my quesion is...

can i install jdk1.5 directly in my system?
will it overwrite JavaRuntime Environment to 1.5?
or I need to unistall jre1.4 fist?becoz when i compile any java file
it may giv jre mismatch statement.

Could you please help regarding this problem?
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can have multiple jvms on a linux box. all you need to do is to switch the path to point to the one you want to use, e.g. (bash-speak below):

export JAVA2_HOME=/usr/local/jdk1.4.8
export JAVA5_HOME=/usr/local/jdk1.5.0
export PATH=$JAVA5_HOME/bin:$PATH

two things to note:
1) you may have an /etc/profile.sh or /etc/profile.d/java.sh that sets up the jvm, so that may be where you want to make the change
2) redhat used to install a fairly old jdk by default in /usr/bin (i say 'used to' because i haven't run RH in a couple of years). so if the above stuff acts funny you can rpm-uninstall the redhat supplied one or just rename any /usr/bin/java, /usr/bin/javac, /usr/bin/jar, /usr/bin/javah etc
The City calls upon her steadfast protectors. Now for a tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic