Skip to content

Instantly share code, notes, and snippets.

@monkstone
Created May 5, 2015 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monkstone/427793f84946eebaa9ab to your computer and use it in GitHub Desktop.
Save monkstone/427793f84946eebaa9ab to your computer and use it in GitHub Desktop.
Some notes about getting and setting java parameters from ruby
require 'java'
java_import java.lang.System
jars = Dir[File.join('/home/tux/ruby-processing/lib', '**/*.jar')]
System.setProperty('java.class.path', jars.join(':'))
p System.getProperties['java.class.path']
libpath = System.getProperties['java.library.path']
libpath
System.setProperty('java.library.path', ['/home/tux/lib/linux64', libpath].join(':'))
libpath = System.getProperties['java.library.path']
p libpath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment