From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: Using javac with Emacs Date: Fri, 18 Sep 2009 14:15:38 +0200 Organization: Freie Universitaet Berlin Message-ID: <873a6kcutx.wl%anselm.helbig+news2009@googlemail.com> References: <878wgcjyjk.fsf@student.ulg.ac.be> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1253281065 30388 80.91.229.12 (18 Sep 2009 13:37:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 13:37:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 18 15:37:38 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ModeZ-000571-1h for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 15:37:35 +0200 Original-Received: from localhost ([127.0.0.1]:34092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ModeY-0006L8-GE for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 09:37:34 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-X-Trace: news.uni-berlin.de N8yjO/cgQ1bgZB48sE+hUwRCwjMmSK18qF8fICFPqa3rdOYnUR+XJODuob Cancel-Lock: sha1:pUhAzHzW8RVY++CkRsYff+8Teqk= In-Reply-To: <878wgcjyjk.fsf@student.ulg.ac.be> Mail-Followup-To: Anselm Helbig Original-Xref: news.stanford.edu gnu.emacs.help:173142 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68265 Archived-At: Hi! > I am using Emacs without JDE. When writing a .java file, then > compiling it e.g. using > $ javac myfile.java > , emacs does not recognize the comment. It is even worse, as emacs > does not allow me to type the whole command, because it does not > recognize what "javac" is. However, it works using a terminal (and > thus without Emacs). How can I manage to make it work? What does M-: (executable-find "javac") give you? Compare the output of M-x show-variableexec-path with echo $PATH in your shell. Do you start emacs from your shell? If not, does starting it from the shell make the problem go away? HTH, Anselm -- Anselm Helbig mailto:anselm.helbig+news2009@googlemail.com