> ... my java runtime enviornment is totally screwed up ...
I haven't followed any of the links you provided,
and I don't know whether or not any of the problems
you experience at these web sites have to do with
your JRE ...
> There are 2 programs which provide 'java'.
... however, the fact that you have two
JRE's installed suggests to me that the
problem could be in your PATH statement.
It's not enough for the JRE to be installed:
Any Java programs that you want to use must
be able to find it. If you have two JRE's
installed, your PATH statement could be
pointing to the wrong one. Or, perhaps
it's not pointing to either one.
I would suggest that you start by reading
my article about this: