Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6122799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:56:30+00:00 2026-05-23T15:56:30+00:00

I am trying to compile the example code of Mahout in Action in Eclipse.

  • 0

I am trying to compile the example code of “Mahout in Action” in Eclipse. There is a java file titled as “LimitedMemoryDiffStorage.java”. Which essentially just define a class

class LimitedMemoryDiffStorage {

Recommender buildRecommender(DataModel model) throws TasteException {
  DiffStorage diffStorage = new MemoryDiffStorage(
    model, Weighting.WEIGHTED, true, 10000000L);
  return new SlopeOneRecommender(
    model, Weighting.WEIGHTED, Weighting.WEIGHTED, diffStorage);
 }

}

But the eclipse compiler states

The constructor MemoryDiffStorage(DataModel, Weighting, boolean, long) is undefined

I think it is defined in the mahout-core library and has been included in the build path, why it still causes this kind of error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:56:30+00:00Added an answer on May 23, 2026 at 3:56 pm

    Maybe you are using a version of the library that is different from the one described in the book. Many times it happens that some of the methods, constructors or even classes are changed or even removed. The best way to check this would be to check the sources of mahout-core library, or at least the byte code. To see the methods including constructor in Eclipse, open the specific MemoryDiffStorage class by pressing CTRL + SHIFT + T and typing in the class name. Then in the outline view you should see the actual constructors with their signatures.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to compile in Eclipse the example code from McDowell here JNA Keyboard
i am trying to compile example source code which is using the OpenGL, SDL
I'm trying to compile the following simple DL library example code from Program-Library-HOWTO with
I'm trying to compile a block of example code using Thrust in an attempt
When trying to compile with Code::Blocks the example that comes up with GTK+: #include
I'm trying to compile the message pack ( http://msgpack.org/ ) example code and keep
When trying to compile the example below, I received a warning: >gcc -o file
I am trying to compile example of Excel automation access from C++ code and
I'm trying to compile simple example to use the boost concept_check Code is as
Trying to compile my app against java 1.7 I found what there was a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.