Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 173363
BY: arton Tajima (arton)
DATE: 2013-02-20 16:06
SUBJECT: RE: Rjb and ocra

 

Hi

Thanks for the report, it's something surprising for me that Orca can handle Rjb.
BTW, the most common reason of "can't create java JVM" is Rjb can't find it. The environment variable JAVA_HOME correctly points JDK installed directory ? if JAVA_HOME points x64 version of JDK but Ruby is x86 version, it also fails.

I think that the easy way to deploying any PC is to give JAVA_HOME by the script itself.
for ex)
#--- start of script
Dir.foreach('/program files (x86)') do |x|
if x =~ /java/i
# search latest java directory
ENV['JAVA_HOME'] = # absolute path name for it
break
end
end

require 'rjb' # rjb looks up JVM correctly
...

Regards.


Thread View

Thread Author Date
Rjb and ocraAdam Davies2013-02-20 13:42
      RE: Rjb and ocraarton Tajima2013-02-20 16:06
            RE: Rjb and ocraAdam Davies2013-02-20 23:43
                  RE: Rjb and ocraAdam Davies2013-02-21 00:29
                        RE: Rjb and ocraAdam Davies2013-02-21 00:32

Post a followup to this message