Programming Taskbook


E-mail:

Password:

User registration   Restore password

Russian

SFedU

1100 training tasks on programming

©  M. E. Abramyan (Southern Federal University), 1998–2018

 

Examples | Ruby | Configuring IDE

PrevNext


Configuring NetBeans IDE for Ruby language

This page briefly describes how to config the NetBeans IDE for Ruby.

NetBeans IDE 6.9

First you need to install JDK package and NetBeans IDE (the NetBeans IDE 6.9 is available at the following link: http://download.netbeans.org/netbeans/6.9.1/final/bundles/netbeans-6.9.1-ml-javase-windows.exe).

Then you should install the Ruby plugin:

1. Run "Tools | Plugins" from the NetBeans main menu.

2. In the "Plugins" window go to the "Available Plugins" tab, check the "Ruby and Rails" checkbox and press the [Install] button.

3. After finishing installation restart the NetBeans IDE.

Then install the Ruby package (for example, http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.0.0-p451.exe?direct). During the installation select all available components.

In the command-line mode run the following command: gem install ffi (if the gem command fails then go to the bin subdirectory of the Ruby system directory and run this command again).

After loading the Ruby project (named PT_Ruby) into the NetBEans IDE you should define the Ruby Platform. Run the "File | Project Properties" command, select the "Run" section in the "Properties" dialog, and use the "Ruby Platform" combobox.

If the "Ruby Platform" combobox contains only "Built-in JRuby" item then you should click the [Manage] button, click the [Add Platform] button in the new dialog, select the Ruby directory (for example, C:\Ruby193\bin) and select the ruby.exe file in this directory. After closing the "Ruby Platform Manager" dialog you should select the "Ruby 1.9.3-p448" item in the "Ruby Platform" combobox.

NetBeans IDE 7.2, 7.3, and 7.4

First you need to install JDK package and NetBeans IDE (the NetBeans IDE 7.4 is available at the following link: http://download.netbeans.org/netbeans/7.4/final/bundles/netbeans-7.4-javase-windows.exe).

Then you should download the Ruby plugin:

After plugin downloading extract it to some directory (for example, c:\ruby_plugin).

Then run the NetBeans IDE and select "Tools | Plugins" from the NetBeans main menu.

In the "Plugins" window go to the "Settings" tab and press the [Add] button.

In the "Update Center Customizer" window enter the text Ruby in the "Name" textbox and enter the path to the plugin file updates.xml (for example, file:///c:/ruby_plugin/updates.xml) in the "URL" textbox.

Close the "Update Center Customizer" window by pressing the [OK] button and check the "Ruby" checkbox in the left-hand side of the "Plugins" window.

Then go to the "Available Plugins" tab, press the [Reload Catalog] button and find the "Ruby and Rails" checkbox. Check this checkbox and press the [Install] button.

After finishing installation restart the NetBeans IDE.

Remark. You can use external Ruby interpreter in the NetBeans 7.2–7.4 as well. For this purpose you should install the Ruby package and select it as a Ruby platform for the PT_Ruby project (see the previous subsection).


PrevNext

 

  Рейтинг@Mail.ru

Designed by
M. E. Abramyan and V. N. Braguilevsky

Last revised:
06.05.2018