943,902 Members | Top Members by Rank

Ad:
  • Ruby Discussion Thread
  • Unsolved
  • Views: 3024
  • Ruby RSS
Apr 6th, 2009
0

Problems running Jruby with Glimmer

Expand Post »
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:

Ruby Syntax (Toggle Plain Text)
  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:

Ruby Syntax (Toggle Plain Text)
  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??? :-(
Reputation Points: 10
Solved Threads: 0
Newbie Poster
fraogongi is offline Offline
13 posts
since Aug 2006
Nov 18th, 2009
0
Re: Problems running Jruby with Glimmer
I think you need to install facets gem.
Run
Ruby Syntax (Toggle Plain Text)
  1. jruby -S gem install facets
Reputation Points: 10
Solved Threads: 0
Newbie Poster
reflexer is offline Offline
1 posts
since Nov 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Ruby Forum Timeline: Meaning of '!(...' EG: "myObject.parse!(argv)" ..?
Next Thread in Ruby Forum Timeline: Anyone want to learn Ruby





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC