Error using code straight from wiki?
brandonparsons opened this issue · 8 comments
I'm trying to do the following, straight from the wiki:
array = MDMatrix.fromfunction("double", [4, 4]) { |x, y| x + y }
And getting the following error:
NameError: cannot link Java class rb.mdarray.loops.unops.SetAll, probable missing dependency: rb/mdarray/loops/unops/SetAll : Unsupported major.minor version 51.0
from org/jruby/javasupport/JavaClass.java:1250:in `for_name'
from org/jruby/javasupport/JavaUtilities.java:34:in `get_proxy_class'
from file:/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/jruby.jar!/jruby/java/java_package_module_template.rb:4:in `const_missing'
from /Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/fast_operators.rb:188:in `set_block'
from /Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/fast_operators.rb:0:in `get_args'
from /Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/fast_operators.rb:186:in `set_block'
from org/jruby/RubyMethod.java:136:in `call'
from /Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/operators.rb:119:in `exec'
from /Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/function_creation.rb:59:in `dim_set'
from /Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/creation.rb:243:in `fromfunction'
from /Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/colt/matrix/creation.rb:156:in `fromfunction'
from (irb):32:in `evaluate'
from org/jruby/RubyKernel.java:1119:in `eval'
from org/jruby/RubyKernel.java:1519:in `loop'
from org/jruby/RubyKernel.java:1282:in `catch'
from org/jruby/RubyKernel.java:1282:in `catch'
from /Users/brandon/.rbenv/versions/jruby-1.7.9/bin/irb:13:in `(root)'
Other functions from MDArray
are working, so the installation is (at least partially) correct. I just installed by putting mdarray
in my Gemfile.
Brandom,
Seems like you don't have the java classpath ser properly. The best way to
install is by doing jruby -S gem install mdarray.
Please try that first.
Em 02/01/2014 21:26, "brandonparsons" notifications@github.com escreveu:
I'm trying to do the following, straight from the wiki:
array = MDMatrix.fromfunction("double", [4, 4]) { |x, y| x + y }
And getting the following error:
NameError: cannot link Java class rb.mdarray.loops.unops.SetAll, probable missing dependency: rb/mdarray/loops/unops/SetAll : Unsupported major.minor version 51.0
from org/jruby/javasupport/JavaClass.java:1250:infor_name' from org/jruby/javasupport/JavaUtilities.java:34:in
get_proxy_class'
from file:/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/jruby.jar!/jruby/java/java_package_module_template.rb:4:inconst_missing' from /Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/fast_operators.rb:188:in
set_block'
from /Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/fast_operators.rb:0:inget_args' from /Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/fast_operators.rb:186:in
set_block'
from org/jruby/RubyMethod.java:136:incall' from /Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/operators.rb:119:in
exec'
from /Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/function_creation.rb:59:indim_set' from /Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/creation.rb:243:in
fromfunction'
from /Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/colt/matrix/creation.rb:156:infromfunction' from (irb):32:in
evaluate'
from org/jruby/RubyKernel.java:1119:ineval' from org/jruby/RubyKernel.java:1519:in
loop'
from org/jruby/RubyKernel.java:1282:incatch' from org/jruby/RubyKernel.java:1282:in
catch'
from /Users/brandon/.rbenv/versions/jruby-1.7.9/bin/irb:13:in `(root)'Other functions from MDArray are working, so the installation is (at
least partially) correct. I just installed by putting mdarray in my
Gemfile.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/16
.
Thanks for the quick reply. No way to do this from the gemfile? I like to
automate installation of gems on production machines.
On Jan 3, 2014, at 5:47 AM, Rodrigo Botafogo notifications@github.com
wrote:
Brandom,
Seems like you don't have the java classpath ser properly. The best way to
install is by doing jruby -S gem install mdarray.
Please try that first.
Em 02/01/2014 21:26, "brandonparsons" notifications@github.com escreveu:
I'm trying to do the following, straight from the wiki:
array = MDMatrix.fromfunction("double", [4, 4]) { |x, y| x + y }
And getting the following error:
NameError: cannot link Java class rb.mdarray.loops.unops.SetAll, probable
missing dependency: rb/mdarray/loops/unops/SetAll : Unsupported major.minor
version 51.0
from org/jruby/javasupport/JavaClass.java:1250:infor_name' from org/jruby/javasupport/JavaUtilities.java:34:in
get_proxy_class'
from
file:/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/jruby.jar!/jruby/java/java_package_module_template.rb:4:in
const_missing' from /Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/fast_operators.rb:188:in
set_block'
from
/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/fast_operators.rb:0:in
get_args' from /Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/fast_operators.rb:186:in
set_block'
from org/jruby/RubyMethod.java:136:incall' from /Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/operators.rb:119:in
exec'
from
/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/function_creation.rb:59:in
dim_set' from /Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/creation.rb:243:in
fromfunction'
from
/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/colt/matrix/creation.rb:156:in
fromfunction' from (irb):32:in
evaluate'
from org/jruby/RubyKernel.java:1119:ineval' from org/jruby/RubyKernel.java:1519:in
loop'
from org/jruby/RubyKernel.java:1282:incatch' from org/jruby/RubyKernel.java:1282:in
catch'
from /Users/brandon/.rbenv/versions/jruby-1.7.9/bin/irb:13:in `(root)'Other functions from MDArray are working, so the installation is (at
least partially) correct. I just installed by putting mdarray in my
Gemfile.—
Reply to this email directly or view it on GitHub<
https://github.com/rbotafogo/mdarray/issues/16>
.
—
Reply to this email directly or view it on
GitHubhttps://github.com//issues/16#issuecomment-31520446
.
You need to manually set your java classpath then. There is a mdarray.jar
file that needs to be on the classpsth. I'm on vacation, so cannot really
look at my computer.
Em 03/01/2014 08:45, "brandonparsons" notifications@github.com escreveu:
Thanks for the quick reply. No way to do this from the gemfile? I like to
automate installation of gems on production machines.On Jan 3, 2014, at 5:47 AM, Rodrigo Botafogo notifications@github.com
wrote:Brandom,
Seems like you don't have the java classpath ser properly. The best way to
install is by doing jruby -S gem install mdarray.Please try that first.
Em 02/01/2014 21:26, "brandonparsons" notifications@github.com
escreveu:I'm trying to do the following, straight from the wiki:
array = MDMatrix.fromfunction("double", [4, 4]) { |x, y| x + y }
And getting the following error:
NameError: cannot link Java class rb.mdarray.loops.unops.SetAll,
probable
missing dependency: rb/mdarray/loops/unops/SetAll : Unsupported
major.minor
version 51.0
from org/jruby/javasupport/JavaClass.java:1250:infor_name' from org/jruby/javasupport/JavaUtilities.java:34:in
get_proxy_class'
from
file:/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/jruby.jar!/jruby/java/java_package_module_template.rb:4:in`const_missing'
from
/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/fast_operators.rb:188:in`set_block'
from
/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/fast_operators.rb:0:in`get_args'
from
/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/fast_operators.rb:186:in`set_block'
from org/jruby/RubyMethod.java:136:in `call'
from
/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/operators.rb:119:in`exec'
from
/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/function_creation.rb:59:in`dim_set'
from
/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/creation.rb:243:in`fromfunction'
from
/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/colt/matrix/creation.rb:156:in`fromfunction'
from (irb):32:in
evaluate' from org/jruby/RubyKernel.java:1119:in
eval'
from org/jruby/RubyKernel.java:1519:inloop' from org/jruby/RubyKernel.java:1282:in
catch'
from org/jruby/RubyKernel.java:1282:incatch' from /Users/brandon/.rbenv/versions/jruby-1.7.9/bin/irb:13:in
(root)'Other functions from MDArray are working, so the installation is (at
least partially) correct. I just installed by putting mdarray in my
Gemfile.—
Reply to this email directly or view it on GitHub<
https://github.com/rbotafogo/mdarray/issues/16>
.—
Reply to this email directly or view it on
GitHub<
https://github.com/rbotafogo/mdarray/issues/16#issuecomment-31520446>
.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-31522974
.
Hi Brandon,
Where you able to get mdarray working?
I'm back from vacation; if you need any further assistance let me know.
Good luck!
Em 03/01/2014 11:45, "brandonparsons" notifications@github.com escreveu:
Thanks for the quick reply. No way to do this from the gemfile? I like to
automate installation of gems on production machines.On Jan 3, 2014, at 5:47 AM, Rodrigo Botafogo notifications@github.com
wrote:Brandom,
Seems like you don't have the java classpath ser properly. The best way to
install is by doing jruby -S gem install mdarray.Please try that first.
Em 02/01/2014 21:26, "brandonparsons" notifications@github.com
escreveu:I'm trying to do the following, straight from the wiki:
array = MDMatrix.fromfunction("double", [4, 4]) { |x, y| x + y }
And getting the following error:
NameError: cannot link Java class rb.mdarray.loops.unops.SetAll,
probable
missing dependency: rb/mdarray/loops/unops/SetAll : Unsupported
major.minor
version 51.0
from org/jruby/javasupport/JavaClass.java:1250:infor_name' from org/jruby/javasupport/JavaUtilities.java:34:in
get_proxy_class'
from
file:/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/jruby.jar!/jruby/java/java_package_module_template.rb:4:in`const_missing'
from
/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/fast_operators.rb:188:in`set_block'
from
/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/fast_operators.rb:0:in`get_args'
from
/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/fast_operators.rb:186:in`set_block'
from org/jruby/RubyMethod.java:136:in `call'
from
/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/operators.rb:119:in`exec'
from
/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/function_creation.rb:59:in`dim_set'
from
/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/mdarray/creation.rb:243:in`fromfunction'
from
/Users/brandon/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/mdarray-0.5.5-java/lib/colt/matrix/creation.rb:156:in`fromfunction'
from (irb):32:in
evaluate' from org/jruby/RubyKernel.java:1119:in
eval'
from org/jruby/RubyKernel.java:1519:inloop' from org/jruby/RubyKernel.java:1282:in
catch'
from org/jruby/RubyKernel.java:1282:incatch' from /Users/brandon/.rbenv/versions/jruby-1.7.9/bin/irb:13:in
(root)'Other functions from MDArray are working, so the installation is (at
least partially) correct. I just installed by putting mdarray in my
Gemfile.—
Reply to this email directly or view it on GitHub<
https://github.com/rbotafogo/mdarray/issues/16>
.—
Reply to this email directly or view it on
GitHub<
https://github.com/rbotafogo/mdarray/issues/16#issuecomment-31520446>
.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-31522974
.
Yeah I think it was an issue with my Java version. I upgraded to 1.7 and it appears to be working now. Thanks for your time 👍
Great,
I´ll close the issue. If you feel like, I´d love to hear about your
experience and feedback with MDArray. Are you just testing or planning to
go production?
Cheers,
2014/1/16 brandonparsons notifications@github.com
Yeah I think it was an issue with my Java version. I upgraded to 1.7 and
it appears to be working now. Thanks for your time [image: 👍]—
Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-32441960
.
Rodrigo Botafogo
Integrando TI ao seu negócio
21-3010-4802/11-3010-1802
Hi there,
Sorry for the delayed reply.
I'm actually just developing an application right now using MDArray. I do plan to put it into production (eventually). I was mostly drawn to the inclusion of the COLT statistics - it provides a lot of additional functionality over using something like statsample
in MRI.
It has seemed pretty rock solid thus far - if I run into any issues I"ll be sure to let you know.
Hi Brandon,
Thanks a lot for the feedback. I´m glad that you are able to use MDArray
and all of COLT statistics without problem. Hope to see soon your
application working!
Cheers,
Rodrigo
2014-02-02 brandonparsons notifications@github.com:
Hi there,
Sorry for the delayed reply.
I'm actually just developing an application right now using MDArray. I do
plan to put it into production (eventually). I was mostly drawn to the
inclusion of the COLT statistics - it provides a lot of additional
functionality over using something like statsample in MRI.It has seemed pretty rock solid thus far - if I run into any issues I"ll
be sure to let you know.Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-33903704
.
Rodrigo Botafogo
Integrando TI ao seu negócio
21-3010-4802/11-3010-1802