Problems running Jruby with Glimmer

Reply

Join Date: Aug 2006
Posts: 13
Reputation: fraogongi is an unknown quantity at this point 
Solved Threads: 0
fraogongi's Avatar
fraogongi fraogongi is offline Offline
Newbie Poster

Problems running Jruby with Glimmer

 
0
  #1
Apr 6th, 2009
Hi y'all,

I've run into problems while running my program in eclipse. Its a Jruby application that uses Glimmer to create GUI components. I've followed the instructions as in http://www.indijava.in/community/art...ser-Interfaces within eclipse, yet I can't seem to get it work. Am trying to run a simple example as the one below:

  1. #require "java"
  2. require "C:/org.eclipse.glimmer.core/src/swt.rb"
  3.  
  4. class HelloWorld
  5. include_package 'org.eclipse.swt'
  6. include_package 'org.eclipse.swt.layout'
  7.  
  8. include Glimmer
  9.  
  10. def launch
  11. @shell = shell {
  12. text "SWT"
  13. composite {
  14. label {
  15. text "Hello World!"
  16. }
  17. }
  18. }
  19. @shell.open
  20. end
  21. end
  22.  
  23. HelloWorld.new.launch

Yet, I keep gettint the error below:

  1. C:/Program Files/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38:in `require': no such file to load -- facets (LoadError)
  2. from C:/org.eclipse.glimmer.core/src/glimmer.rb:17
  3. from C:/org.eclipse.glimmer.core/src/glimmer.rb:16:in `require'
  4. from C:/org.eclipse.glimmer.core/src/swt.rb:16
  5. from C:/org.eclipse.glimmer.core/src/swt.rb:5:in `require'
  6. from hello_world.rb:5

Any suggestions??? :-(
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 1
Reputation: reflexer is an unknown quantity at this point 
Solved Threads: 0
reflexer reflexer is offline Offline
Newbie Poster
 
0
  #2
4 Days Ago
I think you need to install facets gem.
Run
  1. jruby -S gem install facets
Reply With Quote Quick reply to this message  
Reply

Message:



Other Threads in the Ruby Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC