Return-Path: Delivered-To: apmail-incubator-hama-dev-archive@locus.apache.org Received: (qmail 39841 invoked from network); 23 Oct 2008 06:33:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Oct 2008 06:33:04 -0000 Received: (qmail 91544 invoked by uid 500); 23 Oct 2008 06:33:07 -0000 Delivered-To: apmail-incubator-hama-dev-archive@incubator.apache.org Received: (qmail 91527 invoked by uid 500); 23 Oct 2008 06:33:07 -0000 Mailing-List: contact hama-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hama-dev@incubator.apache.org Delivered-To: mailing list hama-dev@incubator.apache.org Received: (qmail 91516 invoked by uid 99); 23 Oct 2008 06:33:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Oct 2008 23:33:07 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Oct 2008 06:32:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3F215234C22D for ; Wed, 22 Oct 2008 23:32:44 -0700 (PDT) Message-ID: <1170264800.1224743564244.JavaMail.jira@brutus> Date: Wed, 22 Oct 2008 23:32:44 -0700 (PDT) From: "Samuel Guo (JIRA)" To: hama-dev@incubator.apache.org Subject: [jira] Commented: (HAMA-90) Handling unknown command In-Reply-To: <977073533.1224739124246.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HAMA-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642075#action_12642075 ] Samuel Guo commented on HAMA-90: -------------------------------- hmm, forget my first comment. You can't have your cake and eat it too. we just let it to run a CLASS like what hadoop's script do. > Handling unknown command > ------------------------ > > Key: HAMA-90 > URL: https://issues.apache.org/jira/browse/HAMA-90 > Project: Hama > Issue Type: Improvement > Components: scripts > Reporter: Edward J. Yoon > Assignee: Samuel Guo > Fix For: 0.1.0 > > > If we type unknown command, Usage shoulde be printed instead of NoClassDefFoundError. > ---- > [root@udanax hama-trunk]# bin/hama example addition -m 2 -r 1 2 2 > Exception in thread "main" java.lang.NoClassDefFoundError: example > Caused by: java.lang.ClassNotFoundException: example > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:252) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) > Could not find the main class: example. Program will exit. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.