-
Notifications
You must be signed in to change notification settings - Fork 9
Using jEdit as your JrubyArt Ide
Martin Prout edited this page Jun 18, 2014
·
4 revisions
Get the macros and commando files here, you will need to edit GEM_HOME and GEM_PATH the beanshell macro to match your system, optionally you can also set JRUBY_OPTS here.
/**
* k9.bsh by monkstone 18 December 2013
* A jedit bean shell macro, to load environment, and call
* k9 commando menu
*
* You must edit GEM_HOME/GEM_PATH to match your system
*
*/
setenv("GEM_HOME", "/home/tux/.gem/ruby/2.0.0");
setenv("GEM_PATH", "/home/tux/.gem/ruby/2.0.0");
setenv("JRUBY_OPTS", "--2.0"); // seems to work for both vendored and installed jruby
new console.commando.CommandoDialog(view,"commando.k9");
You also need to provide the path to the k9 executable the first time you use the script (see below, for some reason setting the PATH environmental variable in the bsh macro above did not work).
Possibly only the fisica sketches still need to use the external jruby flag? (now we are setting the GEM_HOME in the bash script). Here is one of my favourites the bubble sketch running from jEdit.