randomwalk
|
Posted: December 01, 2009 06:53 by randomwalk
|
|
Enjoyed your demo at Rubyconf, so I'm trying out the Jemini wiki tutorial tonight. Got JRuby installed, jemini installed, git cloned gravitor and mite-makes-right and got both games to run. So the basics are in place. First note: mv src/states/hello_world_game_state.rb src/states/play_state.rb should actually refer to hellow_world_state.rb, ditto for the Windows move command. Main issue: When I tried the same run command inside my test app, before and after editing hello_world_state.rb to play_state.rb and making the related change in main.rb, I got an error like this in the new project: Magrider:TestGame allen$ jruby -J-Djava.library.path=lib/java/native_files src/main.rb +++++++++++++++++++ src/main.rb In jar? +++++++++++++++++++ file Users/allen/Projects/TestGame/lib/java/jemini.jar!/logger_mixin.rb:1:in `require': no such file to load -- logger (LoadError)from file Users/allen/Projects/TestGame/lib/java/jemini.jar!/logger_mixin.rb:1from file Users/allen/Projects/TestGame/lib/java/jemini.jar!/logger_mixin.rb:3:in `require'from file Users/allen/Projects/TestGame/lib/java/jemini.jar!/game_object.rb:3from file Users/allen/Projects/TestGame/lib/java/jemini.jar!/game_object.rb:22:in `require'from file Users/allen/Projects/TestGame/lib/java/jemini.jar!/jemini.rb:22from file Users/allen/Projects/TestGame/lib/java/jemini.jar!/jemini.rb:20:in `require'from src/main.rb:20 Being extremely new to JRuby and crap at Java, I don't know well how to chase down the missing require for logger in logger_mixin.rb inside the jar. |
Hit problem with finding logger in running new jemini project
Replies: 3 - Last Post: December 02, 2009 04:27
by: randomwalk
by: randomwalk
showing 1 - 4 of 4
Logan Barnett
|
Posted: December 01, 2009 22:05 by Logan Barnett
|
|
Fixed the wiki entry. |
jaymcgavren
|
Posted: December 01, 2009 18:15 by jaymcgavren
|
|
For a while the load path was (purposely) being clobbered during startup. This behavior should now be removed from the main repo, but I'm not sure about the status of the latest gem. In src/main.rb, if you have this line, comment it out: $LOAD_PATH.clear Let us know if you have any further trouble! |
randomwalk
|
Posted: December 02, 2009 04:27 by randomwalk
|
| Thanks, that fixed it. |
Replies: 3 - Last Post: December 02, 2009 04:27
by: randomwalk
by: randomwalk

Users/allen/Projects/TestGame/lib/java/jemini.jar!/logger_mixin.rb:1:in `require': no such file to load -- logger (LoadError)






