At 10:30 AM 10/26/00 -0500, Ross Ashley <[EMAIL PROTECTED]> wrote:
>Still setting things up and now I'm getting the following error in emacs
>compilation window.
>
>----------------------
>cd [the right directory]
>javac -classpath "[the right classpath]" file.java
>/usr/local/bin/bash: javac: command not found
>
>Compilation exited abnormally with code 127 at Thu Oct 26 10:17:13
>----------------------
>
>But when I run the command exactly as listed above, in a shell in emacs,
>it seems to work, compiler errors notwithstanding. Any ideas?

I believe the Emacs shell  command runs bash in interactive mode while the
compile command runs bash in noninteractive mode. The bash interactive mode
loads your ~/.bashrc file, which may set the PATH variable, by default
while the noninteractive mode does not. Thus, it's possible to have
different paths when running javac from the Emacs shell buffer and via the
compile command. 

- Paul 

Reply via email to