Re: [opensuse] Editting PATH variable



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stan Goodman wrote:
** Reply to message from G T Smith <grahamsmith@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
on Fri, 07 Sep 2007 15:21:38 +0100

-----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
</usr/lib64/jvm/jre/bin>.

<snip>

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...

So far, I have been using full pathname to call java 1.6.0 to start java
applications (because PATH isn't correct for this version, as I said). I would,
however, like to make the needed correction, if for no other reason than to
shorten the command line in the scripts that call these apps. But I take your
point -- the other variables are important.

The jre that I installed was indeed installed through YaST from an rpm package:
<jre-1.6.0_02-fcs>, because I find it in YaST's Software Management tool. I do
not find the jdk; what is the method I need to use for removing it properly,
after which I will try to find the appropriate rpm package?

Although I removed the jre v1.4.2 package using YaST, I now find the following
two installed packages in Software Management:

jre-1_4_2-gci-compat
jre-1_4_2-gci-compat.32bit

I don't recognize these; shall I remove them, since there is no corresponding
jre?


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).


Firstly with the SuSE Java installation I would have expected a symbolic
link from /usr/bin/java to /etc/alternatives/java for later
configurations (this is a link into the the java installation tree. This
rather hides some of the messy version numbering bits so is largely
version tolerant...)... or some such..

The other two are hangovers from 1.4.2 which was only available in a
32bit form...

I do not remember seeing any java stuff in the system path in the past
on SuSE but I tend to work with Eclipse so this usually well hidden...
Java is supposed to be OS agnostic so it carrys around it own
environment. ...


- --
==============================================================================
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

iD8DBQFG4aYXasN0sSnLmgIRAhpdAKCDVVGNKoNTgGFbXJSnnmpIfcq7BwCfaL41
uewfKh68ZWiTk+IGBh/6BAE=
=ixvf
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: [opensuse] Editting PATH variable
    ... 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: ... Firstly with the SuSE Java installation I would have expected a symbolic ...
    (SuSE)
  • Re: Sun JRE 1.5.0_09 update always fails
    ... Is there any version of Sun's java showing in Add/Remove Programs? ... Download the Windows Offline installation package and SAVE it, ... there may be a newer version of the JRE when it comes back up with no explanation as to why. ...
    (microsoft.public.windowsupdate)
  • Re: [SLE] Java JRE 1.5
    ... You need to build your own RPM from the jpackage.org wrapper and the Sun ... just want a JRE not a JDK, ... jpackage.org but not to Suse, I'd guess it's because Suse has more clout:) ... Note that if you want to run both Java 1.4 and Java 1.5 you'll need the ...
    (SuSE)
  • Re: [opensuse] OOo Java Issue
    ... and I have Sun's 64 bit JRE 1.5 update 7 installed. ... OOo's Java options ... No Java installation could be found. ... No but have you tried something not involving a database?? ...
    (SuSE)
  • Re: Java Logging
    ... The version of Sun's JRE installed needs to be uninstalled as it contains vulnerabilities and bugs. ... Then grab the Windows Offline Installation, ... To enable debug logging you need to open the Java applet in the Control Panel. ...
    (microsoft.public.windowsxp.general)