I have installed the following: Dynamic Languages Toolkit - Ruby Development Tools 3.0.0.v20110424-7Z--E_EkMYXO4k101442
On
Eclipse Platform Version: 3.7.2 Build id: I20110613-1736
But when I go to new projects, I see no sign of "Ruby Projects". All I have is File > New > Projects Then it opens a wizard in which I have a choice of General > Project (only)
After which it goes through the usual procedure of naming the project and voila.
I have added a new .rb file in my project and I see no interpreter kicking in for ruby either.
So for the moment eclipse looks like a very advanced notepad...
Can someone point to me what I'm missing?
Thank you
Please follow the steps below.
Install ruby
Install eclipse (Ex: Eclipse Juno)
Now, install Dynamic Languages Toolkit (DLTK)
Select the version and click on Next button
Complete the installation
Enabling Ruby Perspective:
In Eclipse go to Window -> Open Perspective
Select Others..
Select Ruby and click on Ok button
Note: You can save this perspective from Window -> Save Perspective As..
Adding Ruby Interpreter in Eclipse:
In Eclipse goto Window -> Preferences
Select Ruby -> Interpreters
Click on Search button
Select exe and click on Ok button
Hello World:
When above all setup is done correctly you should see Ruby Project in File -> New
Create a new Ruby Project
Add a new class file
Enter puts "Hello World!!"
Click on Ruby Script
You should be able to see Hello World in the console
Happy Ruby learning!!!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.