> -----Original Message----- > From: Andrzej Bialecki [mailto:[EMAIL PROTECTED] > Sent: Monday, March 19, 2007 10:18 AM > To: nutch-dev@lucene.apache.org > Subject: Re: Launching custom classes > > Steve Severance wrote: > > Hi all, > > I have a custom class in the nutch jar. Everything works fine in > eclipse but > > when I try to run it from the command line using bin/nutch it throws > the > > java.lang.NoClassDefFoundError. All the pages on the internet > helpfully > > suggested that I make sure that the jar is in the classpath. I think > that > > > > What needs to be on your classpath is the *.job jar. The bin/nutch > script takes care of that if you built your Nutch using the command- > line > version of ant.
Ok. Thanks. 2 more things. I have 2 directories for nutch, 1 is synchronized with SVN and the other is my working directory. If I run the ant package command in my working directory ant says BUILD FAILED g:\NutchInstance\build.xml:61: Specify at least one source--a file or resource collection. Total time: 0 seconds If I copy my source folder into the trunk dir for my directory that is synced with SVN my class does not get added. I have been studying the build.xml file and I see the plugin generation jobs, but my reasoning is that my package name is org.apache.nutch.<my package> should be compiled into the core. Is this correct? Do I need to make a separate build job for my class or something like that? Second, how do people generally setup their development machines? Do you use Eclipse, if so do you just work off of the trunk or what? What is recommendation for source control in this situation? Is there a way to make a subversion repository for me so that I can add my own code but also receive updates from the trunk? Using an open source project like this seems to add some complexity to the source control process. But I am sure this problem has already been worked out. Regards, Steve > > -- > Best regards, > Andrzej Bialecki <>< > ___. ___ ___ ___ _ _ __________________________________ > [__ || __|__/|__||\/| Information Retrieval, Semantic Web > ___|||__|| \| || | Embedded Unix, System Integration > http://www.sigram.com Contact: info at sigram dot com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nutch-developers mailing list Nutch-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nutch-developers