My team and I are working on developing a JRuby on Rails application on top of Red Hat Enterprise Linux. Our client may ask us to convert it to work on top of Windows, so I begin to do a preliminary search for the path using the Windows 7 x64 machine.
I got jruby -S rake db: drop, db: create and db: transfer tasks to work correctly. However, I was not able to get rake db: seed to work, because we use Sunspot and you need to run it before db: the seed will work correctly. When I try to run rake sunspot: solr: run --trace, I get the following output:
** Invoke sunspot:solr:run (first_time) ** Invoke environment (first_time) ** Execute environment Using dev environment: development ** Execute sunspot:solr:run java version "1.6.0_29" Java(TM) SE Runtime Environment (build 1.6.0_29-b11) Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing) Unable to access jarfile start.jar
I suppose this is due to a classpath problem or something like that, but I was able to figure out what exactly is happening. I tried some things with passing classpath arguments to JRuby, and changing the classpath in application.rb, but have not yet come up with any working solution.
I was hoping that some people might have an answer or some ideas. Thanks!
source share