From: Ruby Student Date: 2011-05-14T02:51:19+09:00 Subject: Re: Jruby -v failing with possible Java version issue --bcaec520f1bfddddd904a32bf3cd Content-Type: text/plain; charset=ISO-8859-1 OK gents, I installed Java 1.6 and pointed to it via the JAVA_HOME environmental variable. It looks like it worked. jruby -v jruby 1.6.1 (ruby-1.8.7-p330) (2011-04-12 85838f6) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_25) [linux-amd64-java] Thank you for your help! On Thu, May 12, 2011 at 4:15 PM, Matthew K. Williams wrote: > 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* >> >> 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 > > -- Ruby Student --bcaec520f1bfddddd904a32bf3cd--