helloopensource

 

ruby_netbeans

Page history last edited by Paulo 1 yr ago

 

Hello Ruby with NetBeans

 

This Tutorial will show you how to download, install and create a Hello World with NetBeans for Ruby.

 

Main Learning's

 

After following this tutorial you will learn how to:

  • Download and install Net Beans for Ruby
  • Write and execute the Hello World Example for Ruby

 

Versions used:

  • OS: Windows XP SP2
  • NetBeans 6.1 beta for Ruby

 

Tutorial Steps:

  1. Download and Install NetBeans for Ruby
    1. Go to NetBeans download page http://download.netbeans.org/netbeans/6.1/beta/
    2. Select the Ruby NetBeans (e.g.,  netbeans-6.1beta-ruby-windows.exe)
    3. execute the installer (e.g., netbeans-6.1beta-ruby-windows.exe)
  2. Create the Hello World project
    1. Open NetBeans IDE
    2. Create a project
    3. File -> New Project…
    4. Select Ruby Application
    5. Select the project location (in my case c:\codebase)
    6. Click on Finish
  3. Execute the Hello World project
    1. Note that by default NetBeans for Ruby created main.rb with the command puts “Hello World”
    2. Select Run -> Main Project
    3. The excepted out put--Hello World—shows up n the Output console window.

 

Comments (0)

You don't have permission to comment on this page.