Hit problem with finding logger in running new jemini project

  4 posts   Feedicon  
Replies: 3 - Last Post: December 02, 2009 04:27
by: randomwalk
showing 1 - 4 of 4
 
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?
+++++++++++++++++++
fileHmmmUsers/allen/Projects/TestGame/lib/java/jemini.jar!/logger_mixin.rb:1:in `require': no such file to load -- logger (LoadError)
from fileHmmmUsers/allen/Projects/TestGame/lib/java/jemini.jar!/logger_mixin.rb:1
from fileHmmmUsers/allen/Projects/TestGame/lib/java/jemini.jar!/logger_mixin.rb:3:in `require'
from fileHmmmUsers/allen/Projects/TestGame/lib/java/jemini.jar!/game_object.rb:3
from fileHmmmUsers/allen/Projects/TestGame/lib/java/jemini.jar!/game_object.rb:22:in `require'
from fileHmmmUsers/allen/Projects/TestGame/lib/java/jemini.jar!/jemini.rb:22
from fileHmmmUsers/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.
 
Posted: December 01, 2009 22:05 by Logan Barnett

Fixed the wiki entry.

 
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!
 
Posted: December 02, 2009 04:27 by randomwalk
Thanks, that fixed it.
Replies: 3 - Last Post: December 02, 2009 04:27
by: randomwalk
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close