All Your Famous Friends
Originally uploaded by Thomas Hawk
I have waited for this news, JRuby 1.0.0RC3 Released – And This Is It!
I have already managed to run an example of JRuby on Rails in Tomcat with PKI at work. So what I need next was an application development environment and I’ve got JRuby on Rails running on Tomcat inside Eclipse IDE with Eclipse WebTools Platform and Aptana’s RadRails plugin.
I already have a Tomcat package coupled with JASS (Java Authentication and Authorisation Service) framework at work, which works nicely within Eclipse IDE with WTP. So, I just needed to install RadRails as a plugin to that. I can only use RadRails to develop a Rails app, but can’t run it in WEBrick because it calls Java JASS API functions to get out other information about the user. However, you can add it to a Tomcat server as an external web module (you can’t add this as a web module because it’s not a web project, but a rails project) so that you can run the Rails app with JRuby in Tomcat within Eclipse! Here is a short instruction.
- Download the Eclipse + WTP all-in-one package
- Install RadRails and configure it
- Create a new Rails project
- Create a WEB-INF folder with necessary files in the root of the project
- Create a new server (e.g. Tomcat)
- Add the Rails project as an external web module to the server. You just point the directory where the Rails project resides in and give a path like /projectname.
- Start the server
- Open a browser in Eclipse and access the webapp (screenshot)
Related Posts:
5 comments
Comments feed for this article
December 18, 2007 at 11:04 pm
JRuby on Rails in Tomcat inside Eclipse (Part 2) « Kiyo’s Blog
[…] So I have tried this again – JRuby on Rails in Eclipse IDE with WebTools Platform and RadRails. […]
January 12, 2008 at 5:38 pm
Bosco
That’s great, but can you explain which the adventatges are of using ruby over java, instead of using jsf (or other presentation framework) over java?
Thanks
May 14, 2008 at 4:47 am
Blog bookmarks 05/14/2008 « My Diigo bookmarks
[…] JRuby on Rails in Eclipse IDE with WebTools Platform and RadRails « Kiyo’s Blog […]
July 9, 2008 at 7:56 am
taghandl0r » Aptana - RadRails - Eclipse
[…] JRuby on Rails in Eclipse IDE with WebTools Platform and RadRails […]
July 26, 2010 at 4:14 pm
Ken Burgett
Hi,
I am in the process of setting up a development environment for Android development. I already have Eclipse and the android tools installed, so all I really need is the JRuby compiler in Eclipse, emitting java classes which get converted to Android dex format. Do you know where I can get any information on that? An installation example would work wonders for me.