Thanks for the reply. I import it to my second program library. I don't know how to call my MR class methods (for example WordCount Program) in the second program..? I do MYProg myprog = new MYProg(); and now I should call a mapreduce method. what method should I call to execute the first mapreduce class?
On Fri, Dec 6, 2013 at 9:01 PM, Anh Pham <[email protected]> wrote: > in your second java program's java file, import classes you want from the 1st > mapreduce class. > > import packagename.class; > > ... > > > compile: > java -cp /<path>/yourMRClass.jar yourSecondClass > > > > On Fri, Dec 6, 2013 at 11:30 AM, Anseh Danesh <[email protected]>wrote: > >> Hi all. >> I write a mapreduce class and create a jar file from the class. now I >> want to use this jar in another java program. can anyone help me please how >> could I do this? I import the jar file into my second java program and now >> I want to call its method.. how can I do this? thanks >> >> >
