From: Ruby Student Date: 2011-05-13T03:17:58+09:00 Subject: Re: Jruby -v failing with possible Java version issue --bcaec520e9df674bd004a31835f9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, This is the output of the commands suggested: root@myserver # which java /usr/bin/java root@myserver # java -version java version "1.4.2" Java(TM) 2 Runtime Environment, Standard Edition (build 2.2) IBM J9SE VM (build 2.2, J2RE 1.4.2 IBM J9 2.2 Linux amd64-64 j9xa64142-20061124 (JIT enabled) J9VM - 20061121_1035_LHdSMr JIT - r7_level20061020_1803) My path: root@myserver # echo $PATH /sbin:/usr/sbin:/usr/local/sbin:/opt/gnome/sbin:/root/bin:/usr/local/bin:/u= sr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib= 64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/opt/jruby/bin:/usr/local= /bin:/usr/local/sbin:/suptools/bin:. Thank you On Thu, May 12, 2011 at 1:26 PM, Matthew K. Williams wro= te: > > On Fri, 13 May 2011, Ruby Student wrote: > > Hello team, >> >> I installed jruby 1.6.1, as fully described below. >> When I run the *jruby -v* command, it fails. Please see output at the en= d >> of >> this post. >> >> Downloaded file: >> *jruby-bin-1.6.1.tar* >> >> 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* >> > > I'm not sure if the IBM Java supports all the flags which Sun/Oracle java > supports. > > > > root@myserver # *echo $PATH* >> >> /sbin:/usr/sbin:/usr/local/sbin:/opt/gnome/sbin:/root/bin:/usr/local/bin= :/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/= lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin: >> */opt/jruby/bin* >> :/usr/local/bin:/usr/local/sbin:/suptools/bin:.:/opt/jruby/bin >> >> > Your path looks really weird here. > > Also, I think that jruby requires the jdk, not the jre. > > > When I try *jruby -v*, this is what I get: >> >> root@myserver # jruby -v >> JVMJ9VM007E Command-line option unrecognised: -client >> Could not create the Java virtual machine. >> >> > try a > > which java > > and a > > java -version > > But I do believe there's an issue with IBM's java version. > > Matt > > --=20 Ruby Student --bcaec520e9df674bd004a31835f9--