regularfry
|
Posted: January 24, 2010 13:12 by regularfry
|
|
This is such a simple problem I'm sure I've messed something up, but I've got absolutely no idea what it might be. From a freshly monkeybar'd project, I make my section of main.rb look like this: begin # Your application code goes here require 'yaml' rescue => e show_error_dialog_and_exit(e) end That is, I just require 'yaml' Java::OrgJrubyExceptions::RaiseException - org.jruby.exceptions.RaiseException: no such file to load -- date yaml/rubytypes:2:in `require': no such file to load -- date (LoadError) from yaml/rubytypes:2 from yaml/rubytypes:393:in `require' from yaml:393 from yaml:50:in `require' from src/main.rb:50:in `require' from <script>:1 ...internal jruby stack elided... from Kernel.require(yaml/rubytypes:2) from (unknown).(unknown)(yaml/rubytypes:393) from Kernel.require(yaml:393) from (unknown).(unknown)(yaml:50) from Kernel.require(src/main.rb:50) from Kernel.require(<script>:1) from (unknown).(unknown)(:1) It looks to me like the $LOAD_PATH isn't set properly; if I insert a puts $LOAD_PATH require file:/home/alex/Documents/Projects/Zeiter/mighty_mouse_builder/lib/java/monkeybars-1.0.4.jar! /home/alex/Documents/Projects/Zeiter/mighty_mouse_builder/build/classes /home/alex/Documents/Projects/Zeiter/mighty_mouse_builder/build/classes/org /home/alex/Documents/Projects/Zeiter/mighty_mouse_builder/build/classes/org/rubyforge /home/alex/Documents/Projects/Zeiter/mighty_mouse_builder/build/classes/org/rubyforge/rawr I don't know why the jruby-complete jar doesn't appear in that list, but it seems strange that it should not. Any ideas? |
require problem in NetBeans
Replies: 3 - Last Post: January 24, 2010 22:00
by: regularfry
by: regularfry
showing 1 - 4 of 4
regularfry
|
Posted: January 24, 2010 13:16 by regularfry
|
Just for completeness:
|
Logan Barnett
|
Posted: January 24, 2010 20:53 by Logan Barnett
|
|
Alex, 1.0.5 (which I released today), fixes this issue. JRuby made a change that broke our gem protection behavior (which was happening in manifest.rb). This is purely my fault - they gave me tons of notice. For your project you already started, just comment out the $LOAD_PATH.clear calls at the top of src/manifest.rb. |
regularfry
|
Posted: January 24, 2010 22:00 by regularfry
|
| Ah, ok. That works. Thanks for that. |
Replies: 3 - Last Post: January 24, 2010 22:00
by: regularfry
by: regularfry







