From: "Matthew K. Williams" Date: 2011-05-13T02:26:24+09:00 Subject: Re: Jruby -v failing with possible Java version issue 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 end 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