# How to run ruby in jEdit?

**URL:** <https://www.ruby-forum.com/t/how-to-run-ruby-in-jedit/86760>\
**Category:** Ruby\
**Created:** [February 25, 2007, 5:38pm UTC](https://www.ruby-forum.com/t/how-to-run-ruby-in-jedit/86760 "2007-02-25T17:38:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mingquan\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/45deac/32.png) [@Mingquan\_C](https://www.ruby-forum.com/u/Mingquan_C)\
**Post date:** [February 25, 2007, 5:38pm UTC](https://www.ruby-forum.com/t/how-to-run-ruby-in-jedit/86760/1 "2007-02-25T17:38:16Z")

</div>

Hi folks,

I’m new to ruby, and now I’m using jEdit to write ruby program.

Although installed “Console” plugin for jEdit, I still failed to run  
Ruby in  
it.

For example, assume there is a ruby file called “test.rb”

I tried all the following commands which described in its reference, and  
these commands were failed.

1. ruby test.rb
2. %run test.rb

Do you have any suggestion to run ruby jEdit? Both with or without that  
“Console” plugin are OK for me.

Thanks in advance. 🙂

---

<div class="post-metadata">

**Author:** ![Mingquan\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/45deac/32.png) [@Mingquan\_C](https://www.ruby-forum.com/u/Mingquan_C)\
**Post date:** [February 25, 2007, 11:28pm UTC](https://www.ruby-forum.com/t/how-to-run-ruby-in-jedit/86760/2 "2007-02-25T23:28:21Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Hi,

On 2007-02-25 17:37, Mingquan C. wrote:

> Although installed “Console” plugin for jEdit, I still failed to run  
> Ruby in it.
> 
> For example, assume there is a ruby file called “test.rb”
> 
> I tried all the following commands which described in its reference,  
> and these commands were failed.  
> I have the Console plugin installed (in jEdit 4.3pre9) and i can type:  
> ruby test.rb  
> and it prints ‘test’ in the jEdit-console (test.rb simply contains puts  
> “test”). Is the ruby parser available on your PATH?

Although i don’t use it myself, maybe also have a look at the  
SuperScript plugin, in which you can enable JRuby support to run  
ruby-code in the SuperScript-console and also write jEdit macros in Ruby  
instead of BeanShell. (see  
[jEdit - Plugin Central - SuperScript](http://plugins.jedit.org/plugins/?SuperScript), also available from the  
pluginmanager)

Another nice Ruby plugin for jEdit is The RubyPlugin, available from  
[http://rubyjedit.org/](http://rubyjedit.org/)

BTW: yet another nice one is SuperAbbrevs 🙂

bye!  
Jeroen

* * *
 --- e-mail: removed\_email\_address@domain.invalid - jid: removed\_email\_address@domain.invalid --- blog: http://budts.be/weblog/ - cv: http://budts.be/jeroen/ --- projects: http://lightyear.be - pgp: 0x8B7B774A
* * *

[GetFirefox.com](http://GetFirefox.com) - rediscover the web

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.5 (MingW32)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org](http://enigmail.mozdev.org)

iD8DBQFF4g17H04wF4t7d0oRAmNmAJ9DwUKL1gDhw4aOxg+37zA9t9LSigCghKa9  
9BRQkrDzK9FjBCKV+CtAWp4=  
=yDBM  
-----END PGP SIGNATURE-----
