Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 28690 invoked from network); 22 Mar 2008 03:28:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Mar 2008 03:28:15 -0000 Received: (qmail 81894 invoked by uid 500); 22 Mar 2008 03:28:06 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 81862 invoked by uid 500); 22 Mar 2008 03:28:06 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Received: (qmail 81853 invoked by uid 99); 22 Mar 2008 03:28:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Mar 2008 20:28:06 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of geniusjash@gmail.com designates 72.14.214.227 as permitted sender) Received: from [72.14.214.227] (HELO hu-out-0506.google.com) (72.14.214.227) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Mar 2008 03:27:28 +0000 Received: by hu-out-0506.google.com with SMTP id 24so956544hud.9 for ; Fri, 21 Mar 2008 20:27:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=oj01AwoJ8B2rn9M9bhkB8FuQ01ehSDf5TrVhoBAVhpk=; b=crdfPEgpymCWhy966IBuQkJPaCFZWzzyoCiAaKU9mKaYum5PxrbcoG9/sMGZPuYzZPVWG6g+5wQrlHb2XwAO+kfAkQ4BWojEFWdZFOqhdmwPvRRb7lf+CbgZjebjIncJPNXC5W43saO5Fdtmck4Hh+vMcZNnHtZMTkyEk/UsmAA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=dl2hP16YRfqOkJZNeg1DzCNtX6uj8rScsulzcxMwGHLiAZc2qsL8PwQ9jD1Z1Ao6il621hq/9NbDkZu8j56nGyTg3H1BwDN2Ka6NBZS0Dxrk4eep8TYFywT+rI0GJsPRJxbx8wWr4CblKC8eHKcXd+bLOz9kVJUc1aNPjMxCVyE= Received: by 10.82.184.2 with SMTP id h2mr9391803buf.1.1206156457169; Fri, 21 Mar 2008 20:27:37 -0700 (PDT) Received: by 10.82.119.18 with HTTP; Fri, 21 Mar 2008 20:27:37 -0700 (PDT) Message-ID: Date: Sat, 22 Mar 2008 11:27:37 +0800 From: "=?GB2312?B?1uzKor+t?=" To: core-user@hadoop.apache.org Subject: Re: walkthrough of developing first hadoop app from scratch In-Reply-To: <47E4627F.9010705@u.washington.edu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5402_4956052.1206156457153" References: <47E4627F.9010705@u.washington.edu> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_5402_4956052.1206156457153 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Stephen, You can get an example of word count, there shows how to create jar archive of you application codes. $ mkdir wordcount_classes $ javac -classpath ${HADOOP_HOME}/hadoop-${HADOOP_VERSION}-core.jar -d wordcount_classes WordCount.java $ jar -cvf /usr/joe/wordcount.jar -C wordcount_classes/ . (notice: here is a dot referring to current directory) On 3/22/08, Stephen J. Barr wrote: > > Hello, > > I am working on developing my first hadoop app from scratch. It is a > Monte-Carlo simulation, and I am using the PiEstimator code from the > examples as a reference. I believe I have what I want in a .java file. > However, I couldn't find any documentation on how to make that .java > file into a .jar that I could run, and I haven't found much > documentation that is hadoop specific. > > Is it basically javac MyApp.java > jar -cf MyApp > > or something to that effect, or is there more to it? > > Thanks! Sorry for the newbie question. > > -stephen barr > ------=_Part_5402_4956052.1206156457153--