【发布时间】:2014-03-02 12:10:59
【问题描述】:
我正在尝试在 JRuby 中使用 Mahout,需要来自 latest stable Mahout distribution 的以下三个 JAR 文件。
- mahout-core-0.9.jar
- mahout-integration-0.9.jar
- mahout-math-0.9.jar
我尝试使用的一些类工作正常,但特别是一些没有加载。相反,我得到了这样的例外:
NameError: missing class or uppercase package name (`org.apache.mahout.cf.taste.impl.recommender.GenericBooleanPrefUserBasedRecommender')
get_proxy_or_package_under_package at org/jruby/javasupport/JavaUtilities.java:54
method_missing at file:/Users/bloudermilk/.rbenv/versions/jruby-1.7.10/lib/jruby.jar!/jruby/java/java_package_module_template.rb:14
(root) at _test.rb:9
我确定该类存在于包中,如it is mentioned in the docs。事实上,我也可以解压mahout-core JAR 并在其中查看相应的.class 文件。
我在这里上传了一个测试仓库到 GitHub:https://gist.github.com/bloudermilk/8832036
我没有任何 Java 经验,所以我似乎遗漏了一些明显的东西。为什么 JRuby 找不到这个类?我该如何解决这个问题?
【问题讨论】: