From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Kinnucan Newsgroups: gmane.emacs.help Subject: Re: OT: Run Ant in MingW shell? Date: 15 Oct 2003 13:04:51 -0400 Organization: The MathWorks, Inc. Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066238266 6835 80.91.224.253 (15 Oct 2003 17:17:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2003 17:17:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 15 19:17:41 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A9pHJ-00087n-00 for ; Wed, 15 Oct 2003 19:17:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9pGr-0007Ce-T7 for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Oct 2003 13:17:13 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newsfeed.mathworks.com!news.mathworks.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: kinnucanp.dhcp.mathworks.com Original-X-Trace: fred.mathworks.com 1066237491 9511 144.212.115.65 (15 Oct 2003 17:04:51 GMT) Original-X-Complaints-To: news@mathworks.com Original-NNTP-Posting-Date: Wed, 15 Oct 2003 17:04:51 +0000 (UTC) User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:117275 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13204 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13204 Hi Kai, I just wanted to make sure that you are aware that the JDEE provides comprensive support for running Ant scripts from Emacs. You have a choice of either launching a vm directly from Emacs to run the Ant script or to run the Ant from the BeanShell. In either case, there is no need to use an intermediate shell and hence deal with environment variable inheritance issues. Paul Kai.Grossjohann@gmx.net (Kai Grossjohann) writes: > I searched Google and Gmane for a pertinent group but couldn't find > one, so I thought maybe I'll be lucky here ;-) > Please don't hesitate to point me to the right group. > > I started a MingW shell under Emacs via the following setup and then > hitting M-x shell: > > (setq explicit-sh.exe-args '("--noediting" "--login" "-i")) > (setq explicit-shell-file-name "sh.exe") > > In that shell, I say "cd work/bla", then I say "ant -emacs compile", > and this is the response: > > ~/work/bla> ant -emacs compile > java.lang.NoClassDefFoundError: org/apache/tools/ant/Main > Exception in thread "main" ~/work/bla> > > I look at $CLASSPATH and it's the same as under CMD.EXE. But there, > Ant works. > > Any idea how to get it working? > > tia, > Kai