Skip to content

Instantly share code, notes, and snippets.

@boc-tothefuture
Created October 30, 2020 21:06
Show Gist options
  • Save boc-tothefuture/ff57340dd6c4e972592ac977e5cbb91e to your computer and use it in GitHub Desktop.
Save boc-tothefuture/ff57340dd6c4e972592ac977e5cbb91e to your computer and use it in GitHub Desktop.
OpenHab/JRuby
#require 'java'
#require 'jruby'
#require 'logger'
#require 'csv'
p "***Classpath****"
p $CLASSPATH
p "*******"
$CLASSPATH << '/Users/boc@us.ibm.com/personal/openhab-2.5.10/conf/automation/jruby/jruby-complete-9.2.13.0.jar'
p "***Classpath****"
p $CLASSPATH
p "*******"
p "***special****"
p $:
p "*******"
$: << 'uri:classloader:/META-INF/jruby.home/lib/ruby/gems/shared/gems/did_you_mean-1.2.0/lib'
$: << 'uri:classloader:/META-INF/jruby.home/lib/ruby/2.5/site_ruby'
$: << 'uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib'
p "***Load Path****"
p $LOAD_PATH
p "*******"
require 'logger'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment