-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stan Goodman wrote:
The system is x86_64 openSuSE v10.2.
Previously, it contained jre v1.4.2, and PATH contained the string .
Recently I updated to jre v1.6.0, and the new PATH string should be (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 , 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?
The first thing is that Java is a bit special about it handles these things, the system path is usually irrelevant to java. JAVA_HOME is important... as are a few other variables.... Look at the following /etc/java/java.conf /etc/profile.d/alljava.sh to get an idea of what is happening. I would recommend using the SuSE rpms (particularly on x64 systems) as things are a bit non standard (in a rather elegant manner). - -- ============================================================================== I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone. Bjarne Stroustrup ============================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFG4V5yasN0sSnLmgIRAqEuAKDjkjJ1Pz2PeX3wwoO9se/Og0JEMACfX6er kWyj67yDymRh4JclR6ujmd0= =kM38 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org