the file profile exist under /etc which sets all environment.  so if you
would like to add a enviroment,JAVA_HOME it is possible, you can add it as
you have it below, or just add the JAVA_HOME=/usr/java/jdk1.3.1_01 and on
the export line add the JAVA_HOME.  You will also see the where the path is
specified, add JAVA_HOME to it.
to uninstall the rpm, use the command "rpm -e"  to remove it.  You must give
it the exact package name " type "rpm -qa |grep jdk"  There might be some
dependencies to resolve, you can either uninstall packages, or add the
"--nodeps" to your command to ignore dependency. "rpm -e --nodeps
jdk-som-som" 
ps.  there is an active web group to help with all sort of install and
configuration Linux question, www.experts-exchange.com you might find it
very useful.


-----Original Message-----
From: Hasan Al-Sheboul [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 3:45 AM
To: [EMAIL PROTECTED]
Subject: Setting $PATH for JAVA


Hi all,

    I have RHLinux 7.1. I would like to remove the RPM preinstalled old
version of Java. I don't know the name of this rpm and how to uninstall
it.

I would like to istall the Sun's version J2SE (jdk-1.3.1_01). For this,
one suggested for setting up the new jdk, is to create a script uniquely
named in the "/etc/profile.d/" directory and set the environment
variables in there. e.g.
                <start>#!/bin/shexport JAVA_HOME=/usr/java/jdk1.3.1_01
                export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar
                export PATH=$PATH:$JAVA_HOME/bin
                <end>

Any suggestions for how to remove the preinstalled Java?
Thanx for all replies.



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to