Sequel::AdapterNotFound: LoadError: cannot load such file -- java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Sequel::AdapterNotFound: LoadError: cannot load such file -- java

Alex jimmy Montaño fuentes
below are the errors when I run the build exec rake db:migrate

where I am using jruby 1.7.16 and open jdk 1.7.0_75, please help me to
fix the below issues .


Sequel::AdapterNotFound: LoadError: cannot load such file -- java
/home/test/Travis/travis-logs/vendor/bundle/ruby/2.1.0/gems/sequel-4.0.0/lib/seq
/home/test/Travis/travis-logs/vendor/bundle/ruby/2.1.0/gems/sequel-4.0.0/lib/seq
/home/test/Travis/travis-logs/vendor/bundle/ruby/2.1.0/gems/sequel-4.0.0/lib/seq
/home/test/Travis/travis-logs/vendor/bundle/ruby/2.1.0/gems/sequel-4.0.0/lib/seq
/home/test/Travis/travis-logs/vendor/bundle/ruby/2.1.0/gems/sequel-4.0.0/lib/seq
/home/test/Travis/travis-logs/vendor/bundle/ruby/2.1.0/gems/sequel-4.0.0/lib/seq
/home/test/Travis/travis-logs/lib/travis/logs/helpers/database.rb:18:in
`create_
/home/test/Travis/travis-logs/Rakefile:14:in `block (2 levels) in <top
(required

--
Posted via http://www.ruby-forum.com/.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Sequel::AdapterNotFound: LoadError: cannot load such file -- java

Bruce Adams
The error message indicates that Ruby 2.1.0 is running, not JRuby.

Whatever setup is running is not using JRuby for this rake command.

What happens if you run this command
    ruby -v
Does the Ruby version indicate "jruby"?

How about this command:
   which rake

- Bruce

On Wed, Apr 22, 2015, at 08:30 AM, Naresh Gundu wrote:

> below are the errors when I run the build exec rake db:migrate
>
> where I am using jruby 1.7.16 and open jdk 1.7.0_75, please help me to
> fix the below issues .
>
>
> Sequel::AdapterNotFound: LoadError: cannot load such file -- java
> /home/test/Travis/travis-logs/vendor/bundle/ruby/2.1.0/gems/sequel-4.0.0/lib/seq
> /home/test/Travis/travis-logs/vendor/bundle/ruby/2.1.0/gems/sequel-4.0.0/lib/seq
> /home/test/Travis/travis-logs/vendor/bundle/ruby/2.1.0/gems/sequel-4.0.0/lib/seq
> /home/test/Travis/travis-logs/vendor/bundle/ruby/2.1.0/gems/sequel-4.0.0/lib/seq
> /home/test/Travis/travis-logs/vendor/bundle/ruby/2.1.0/gems/sequel-4.0.0/lib/seq
> /home/test/Travis/travis-logs/vendor/bundle/ruby/2.1.0/gems/sequel-4.0.0/lib/seq
> /home/test/Travis/travis-logs/lib/travis/logs/helpers/database.rb:18:in
> `create_
> /home/test/Travis/travis-logs/Rakefile:14:in `block (2 levels) in <top
> (required
>
> --
> Posted via http://www.ruby-forum.com/.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Sequel::AdapterNotFound: LoadError: cannot load such file -- java

Alex jimmy Montaño fuentes
Bruce Adams wrote in post #1172461:

> The error message indicates that Ruby 2.1.0 is running, not JRuby.
>
> Whatever setup is running is not using JRuby for this rake command.
>
> What happens if you run this command
>     ruby -v
> Does the Ruby version indicate "jruby"?
>
> How about this command:
>    which rake
>
> - Bruce

Hi Bruce,

here are the details of ruby -v, jruby -v , rake

test@pts00433-vm8:~/Travis/travis-logs$ ruby -v
jruby 1.7.16 (1.9.3p392) 2014-09-25 575b395 on OpenJDK 64-Bit Server VM
1.7.0_75-b13 +jit [linux-ppc64]
test@pts00433-vm8:~/Travis/travis-logs$ jruby -v
jruby 1.7.16 (1.9.3p392) 2014-09-25 575b395 on OpenJDK 64-Bit Server VM
1.7.0_75-b13 +jit [linux-ppc64]
test@pts00433-vm8:~/Travis/travis-logs$ which rake
/home/test/.rvm/rubies/jruby-1.7.16/bin/rake

--
Posted via http://www.ruby-forum.com/.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Sequel::AdapterNotFound: LoadError: cannot load such file -- java

Bruce Adams
Naresh -

Those look fine. I forgot to ask you for "which bundle", since you are
using "bundle exec rake ..."

- Bruce

On Wed, Apr 22, 2015, at 10:16 AM, Naresh Gundu wrote:

> Hi Bruce,
>
> here are the details of ruby -v, jruby -v , rake
>
> test@pts00433-vm8:~/Travis/travis-logs$ ruby -v
> jruby 1.7.16 (1.9.3p392) 2014-09-25 575b395 on OpenJDK 64-Bit Server VM
> 1.7.0_75-b13 +jit [linux-ppc64]
> test@pts00433-vm8:~/Travis/travis-logs$ jruby -v
> jruby 1.7.16 (1.9.3p392) 2014-09-25 575b395 on OpenJDK 64-Bit Server VM
> 1.7.0_75-b13 +jit [linux-ppc64]
> test@pts00433-vm8:~/Travis/travis-logs$ which rake
> /home/test/.rvm/rubies/jruby-1.7.16/bin/rake

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Re: Sequel::AdapterNotFound: LoadError: cannot load such file -- java

Alex jimmy Montaño fuentes
Bruce Adams wrote in post #1172466:
> Naresh -
>
> Those look fine. I forgot to ask you for "which bundle", since you are
> using "bundle exec rake ..."
>
> - Bruce

Hi Bruce,

Here is the bundle info which I am using

(See full trace by running task with --trace)
test@pts00433-vm8:~/Travis/travis-logs$ which bundle
/usr/bin/bundle
test@pts00433-vm8:~/Travis/travis-logs$ bundle -v
Bundler version 1.6.3
test@pts00433-vm8:~/Travis/travis-logs$ whereis bundler
bundler: /usr/bin/bundler
test@pts00433-vm8:~/Travis/travis-logs$ whereis bundle
bundle: /usr/bin/bundle /usr/share/man/man1/bundle.1.gz

--
Posted via http://www.ruby-forum.com/.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Re: Sequel::AdapterNotFound: LoadError: cannot load such file -- java

Bruce Adams
Naresh -

And that is the problem. You need to be using a bundle within JRuby.

I can hope that "which gem" shows a path under your .rvm directory with
jruby-1.7.16 in the path. If that is true, then "gem install bunder"
should get the correct "bundle" onto your path (so "which bundle" will
also show a path under .rvm/.../jruby-1.7.16/...)

If "which gem" shows a system "gem", such as /usr/bin/gem, then a simple
"gem install bundler" won't do what you need. You'll need to track down
the "gem" command associated with your JRuby and use that.

- Bruce

On Thu, Apr 23, 2015, at 01:12 AM, Naresh Gundu wrote:

> Here is the bundle info which I am using
>
> (See full trace by running task with --trace)
> test@pts00433-vm8:~/Travis/travis-logs$ which bundle
> /usr/bin/bundle
> test@pts00433-vm8:~/Travis/travis-logs$ bundle -v
> Bundler version 1.6.3
> test@pts00433-vm8:~/Travis/travis-logs$ whereis bundler
> bundler: /usr/bin/bundler
> test@pts00433-vm8:~/Travis/travis-logs$ whereis bundle
> bundle: /usr/bin/bundle /usr/share/man/man1/bundle.1.gz

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email