[CentOS] Re: Java installation problem. -- Sun Java? Or GNU GCJ?

Sat Aug 6 22:31:57 UTC 2005
Bryan J. Smith <b.j.smith at ieee.org>

On Sat, 2005-08-06 at 19:15 +0000, duffmckagan wrote:
> It is installed in /usr/java 

Be _careful_ on that.
Red Hat ships a GNU Java run-time.

E.g.,

  ls -la /usr/bin/java
  ... /usr/bin/java -> /etc/alternatives/java

  ls -la /etc/alternatives/java
  ... /etc/alternatives/java -> /usr/lib/jvm/jre-1.4.2-gcj/bin/java
                                                       ^^^

You should use the alternatives framework to change it to Sun's Java.
I have never gotten this to work correctly myself, so I just change
the symlink manually (not ideal).


-- 
Bryan J. Smith     b.j.smith at ieee.org     http://thebs413.blogspot.com
----------------------------------------------------------------------
The best things in life are NOT free - which is why life is easiest if
you save all the bills until you can share them with the perfect woman