[opensuse] Editting PATH variable



The system is x86_64 openSuSE v10.2.

Previously, it contained jre v1.4.2, and PATH contained the string
</usr/lib64/jvm/jre/bin>.

Recently I updated to jre v1.6.0, and the new PATH string should be
</usr/java/jre1.6.0_02/bin> (but it remains as before, because I am not clear
on how to change it).

But then I decided that what I really need is a JDK, so I installed jdk
v1.6.0_02. The installer suggested installing in <~/jdk1.6.0_02/bin>, and I
accepted this. -- I am not uncomfortable with the JDK in the user directory,
with a JRE available for anyone else, so the new phrase in PATH should be
</usr/java/jre1.6.0_02/bin>, and the JDK equivalent should be in the user's
PATH.

The sources I have found from a Google search indicate that I should change the
global PATH variable by editing the file /etc/profile. But when I opened (as
root) that file, and searched for the string "jre" to find the place to edit, I
was unable to find it. Moreover, there is a warning at the top of that file
telling me that changes in the profile may not survive a system update, which
is discouraging. The fact that "jre" is not found at all is inexplicable to me,
since "jre" is known to be contained in the PATH, and I would like to
understand why it isn't present.

The 'Net offers much advice on how to add a directory to PATH by the sequence:

PATH = $PATH:<new string>
export PATH

but seems to ignore completely the question of changing existing directories.
How to go about this?

--
Stan Goodman
Qiryat Tiv'on
Israel

Idiotic commercials heard on CNN, #3: "It's funny how airlines always focus on the big things. To me, it's the little things that are important." -- for Scandinavian Airlines
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: JTextPane line wrap change in windows JRE 1.5.0_10?
    ... When I run this code on my mac with jre 1.5.0_7 and on my pc with jre ... d.insertString, exon1, exonAttributeSet); ... intronAttributeSet); ... String intron1 = ...
    (comp.lang.java.gui)
  • Re: [opensuse] Editting PATH variable
    ... Recently I updated to jre v1.6.0, and the new PATH string should be ... But then I decided that what I really need is a JDK, ... Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org ...
    (SuSE)
  • Re: [opensuse] Editting PATH variable
    ... Recently I updated to jre v1.6.0, and the new PATH string should be ... The first thing is that Java is a bit special about it handles these ... The jre that I installed was indeed installed through YaST from an rpm package: ...
    (SuSE)
  • Re: [opensuse] Editting PATH variable
    ... Recently I updated to jre v1.6.0, and the new PATH string should be ... The first thing is that Java is a bit special about it handles these ... The jre that I installed was indeed installed through YaST from an rpm package: ...
    (SuSE)
  • [Full-disclosure] [ GLSA 200506-14 ] Sun and Blackdown Java: Applet privilege escalation
    ... Sun and Blackdown both provide implementations of the Java Development ... Kit (JDK) and Java Runtime Environment (JRE). ...
    (Full-Disclosure)