Hi again, and thanks for your answer. What I am actually trying to do is this:
I want to combine two recommenders, a user-based and an item-based one. So I created a new Class which implements the Recommender interface and which internally declares two recommender objects. I need to call a method of this class from recommenderServlet so I have to import the package which contains the new class in the recommenderServlet class. I'm doing exactly what is described in Taste documentation (I use maven) and get the compilation warning that I told you about in the previous message. I think that the problem is that for some reason the recommenderServlet class can't "see" the package that I import. Which packages are viewable from the servlet and how can I add the examples package? Thanks, Lef > -----Original Message----- > From: Sean Owen [mailto:[email protected]] > Sent: Thursday, May 27, 2010 12:39 AM > To: [email protected] > Subject: Re: Change Recommender servlet > > This bit of code actually depends on other code in the examples > module. (Which is arguably strange and which I'm happy to think about > changing, but there are decent reasons for it.) > > I think it is just depending on the RecommenderWrapper class. > > It should build from the Maven build script since it will express this > dependency. If you compile it in another system, you may have to tell > it about the code in examples too. > > No code is in the default package. > > On Wed, May 26, 2010 at 9:51 PM, Eleftherios Spyromitros Xioufis > <[email protected]> wrote: > > Hi all, > > > > I want to build a custom recommender and for that reason I need to > change > > the RecommenderServlet class. > > I import a package, say > > org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender; > > and when I try to start jetty server I get the following complilation > > failure message: > > > > C:\Users\lef\Desktop\mahout-0.3-src\mahout-0.3\taste- > web\src\main\java\org\apach > > e\mahout\cf\taste\web\RecommenderServlet.java:[36,51] package > > org.apache.mahout. > > cf.taste.example.grouplens does not exist > > > > How can i solve this problem? Is it possible to import other than the > > default packages in RecommenderServlet class? > > > > Thanks in advance, > > -Lef > > > > > > > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.819 / Virus Database: 271.1.1/2898 - Release Date: > 05/26/10 21:26:00
