Vocals: Andrea Burns - 100 Stories
Somethin for the wake-n-bake crowd…
I found a solution to a manifestation to this problem, and, having little luck with Google in solving it, thought it would be worth posting.
If you’re trying to install jRuby 1.7.9 (not sure about other versions), and running it looks something like this:
>c:\ruby\jruby-1.7.9\bin\jruby.exe -v Cannot find Java 1.5 or higher. >
Then perhaps your %JAVA_HOME% variable is misplaced!
(If you encounter an error trying to add jRuby to Pik, as I was, where it thinks your jRuby version is ‘cannot-‘, then this will also interest you.)
It would seem the Windows JRE installer (I used jdk-7u45-windows-x64.exe) writes %JAVA_HOME% to your user environment, as opposed to the system environment. For some reason, a command prompt running as the current user (Cmd-R then type ‘cmd.exe’) might not be able to see the user %JAVA_HOME% variable, so you must set it in your system vars yourself.
Once you’ve added %JAVA_HOME% to your system variables, jRuby should be able to see it. Huzzah!
>c:\ruby\jruby-1.7.9\bin\jruby.exe -v jruby 1.7.9 (1.9.3p392) 2013-12-06 87b108a on Java HotSpot(TM) 64-Bit Server VM 1.7.0_45-b18 [Windows 8-amd64]
Suffered a hell of a lot of mosquito bites to take this…
Pictured: Sanshine https://www.facebook.com/SanshineHoopDance
If you had 24 years to change and refine a country’s policies, would you twist those to your benefit? Bulgaria’s corrupt politicians most certainly did.
More global unrest :-( #ДАНСwithme