November 15, 2013

Installation of Ruby with Eclipse

If you wanna execute the Ruby with Eclipse then follow the step by step procedure.... Install it and enjoy the day...

Required Items:
Ruby installer for windows [1.9.2 version].
Eclipse Helios

>>>

FIRST Install the ruby in your system.

Try ruby installer.exe file.

http://rubyinstaller.org/downloads/

Open eclipse and Go to
Help>> Install Software

Enter the below URL to get the DLK kit for Ruby

http://download.eclipse.org/technology/dltk/updates/

Download the latest software Version (select the latest version checkbox)




Install it, Apply the changes and restart the eclipse.

Go to 'File' > New> Project

You can see the RUBY folder tree Structure.
Select the RUBY Project.


Enter Project name and Choose Configure Interpreter.




You can see Ruby interpreter is not available in the selection.


So now you need to add the ruby exe file with the application.
Select 'Add' and browse the ruby.exe file location, then the library files are gets downloaded.

Now the Ruby exe file is configure in your system..

Select OK.

Select 'finish'.
Now its time to work with RUBY..

Create a new class file.
save it as filename.rb (Ex: test.rb)

Enter the below line to print HAI and save the file. run it
>>
puts "HAI"
>>
OUTPUT: HAI
Wow.... Ruby Master Congrats....

No comments:

Post a Comment