Use jReality with jruby

From JReality Wiki
Jump to: navigation, search

Source file: test.rb


This file test.rb is an example to show how to use the popular scripting language jruby with jReality.


To run this example with the JOGL backend enabled:

  • Download jruby
  • Add jruby to your path.
  • setenv CLASSPATH to include the jarfiles jReality.jar, jtem-beans.jar, and jogl.jar
  • setenv JAVA_LIBRARY_PATH to include the native libraries for jogl.
  • Run "jruby test.rb"


If successful, you should see a textured cylinder displayed in a JRViewer application.


Thanks to jReality forum member BrunoGardin for this contribution.

Previous: Developer Tutorial Developer Tutorial: Contents Next: Use jReality with jython