| 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. | |