On Fri, 13 May 2011, Ruby Student wrote:

> But I have 1.6, I installed it.

That may be the case, however, when you ran java -version, it says 1.4.2

So that's the one which is first in your path.

> If I go to the Oracle site and run their applet to verify the java version,
> I get the following:
>
> When I verify Java on the Oracle site, I get the following:
>
>        Your Java is Working
>        Java update available
>
>        Your Java configuration is as follows:
>
> Vendor: *IBM Corporation* <http://java.com/>
> Version: *Java SE 6*
> Operating System: *Linux 2.6.32-71.24.1.el6.x86_64*
> Architecture: *amd64*
>

How are you verifying this????  Via a browser or an applet?  That does not 
necessarily count.

> Perhaps, like you said, I have to switch from IBM to Oracle version.
> I don't want to remove the IBM version since it might be used by some
> application on the server, but I am wondering if I can have multiple Java
> versions from different vendors.
>

Yes, you can.  It is controlled by your path.  Just make sure that the 
version you want to use comes first in the path.

Matt