| | |
Problems running Jruby with Glimmer
Please support our Ruby advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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:
Yet, I keep gettint the error below:
Any suggestions??? :-(
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)
#require "java" require "C:/org.eclipse.glimmer.core/src/swt.rb" class HelloWorld include_package 'org.eclipse.swt' include_package 'org.eclipse.swt.layout' include Glimmer def launch @shell = shell { text "SWT" composite { label { text "Hello World!" } } } @shell.open end end HelloWorld.new.launch
Yet, I keep gettint the error below:
Ruby Syntax (Toggle Plain Text)
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) from C:/org.eclipse.glimmer.core/src/glimmer.rb:17 from C:/org.eclipse.glimmer.core/src/glimmer.rb:16:in `require' from C:/org.eclipse.glimmer.core/src/swt.rb:16 from C:/org.eclipse.glimmer.core/src/swt.rb:5:in `require' from hello_world.rb:5
Any suggestions??? :-(
•
•
Join Date: Nov 2009
Posts: 1
Reputation:
Solved Threads: 0
0
#2 4 Days Ago
I think you need to install facets gem.
Run
Run
Ruby Syntax (Toggle Plain Text)
jruby -S gem install facets
![]() |
Other Threads in the Ruby Forum
- Previous Thread: Meaning of '!(...' EG: "myObject.parse!(argv)" ..?
- Next Thread: Anyone want to learn Ruby
| Thread Tools | Search this Thread |





