I see! So the buffer is in the correct directory. But why does bash have a
problem reading the file
as in "error: cannot read: MainFrame.java" ? When bash executes the 'javac'
command, the environment contains the following.
Does the value of the 'PWD' variable explain my problem? If so, does
jde-compile expect extra path settings
prior to execution?

Thanks in advance
Kuros

BASH_ENV=d:\cygwin\home\administrator\.bashrc
CLASSPATH=d:\compaq\lib\activation.jar;.;d:\compaq;d:\compaq\lib\log4j-full.jar;d:\compaq\lib\java-getopt-1.0.8.jar;d:\compaq\lib\UNA2000_Enterprise.zip

COMPUTERNAME=KUROS
COMSPEC=C:\WINNT\system32\cmd.exe
CPROOT=d:\compaq
CPROOTLIB=d:\compaq\lib
CVSROOT=:pserver:kyalpani@mgm-cvs:/sdb/cvs/compaq
EMACS=t
EMACSDATA=D:/emacs/etc
EMACSDOC=D:/emacs/etc
EMACSLOADPATH=D:/emacs/site-lisp;D:/emacs/lisp;D:/emacs/leim
EMACSLOCKDIR=D:/emacs/lock
EMACSPATH=D:/emacs/bin
EMACS_DIR=D:/emacs
EM_PARENT_PROCESS_ID=214
HOME=/cygdrive/c
HOMEDRIVE=C:
HOMEPATH=\
HOSTNAME=KUROS
HOSTTYPE=i686
LOGONSERVER=\\MGMDB
MACHTYPE=i686-pc-cygwin
NUMBER_OF_PROCESSORS=1
OLDPWD=/cygdrive/d/cvs/App_FeedGui/sources/java/com/compaq/cpl/feed/feedgui
OS2LIBPATH=C:\WINNT\system32\os2\dll;
OS=Windows_NT
OSTYPE=cygwin
PATH=/cygdrive/d/jdk1.3/bin:/cygdrive/d/misc/bin:/cygdrive/d/emacs/bin:/cygdrive/d/emacs/site/jde-1.2.6/lisp:/cygdrive/d/java/JavaDeps-1.1:/usr/local/bin/:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/usr/bin

PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 7 Stepping 3, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0703
PWD=//d
SHELL=bash
SHLVL=1
SYSTEMDRIVE=C:
SYSTEMROOT=C:\WINNT
TEMP=/cygdrive/c/TEMP
TERM=cmd
TMP=/cygdrive/c/TEMP
TMPDIR=/cygdrive/c/TEMP
USERDOMAIN=MGM
USERNAME=kyalpani
USERPROFILE=C:\WINNT\Profiles\kyalpani
WINDIR=C:\WINNT
_=/usr/bin/env

Paul Kinnucan wrote:

> At 10:37 AM 3/8/2001 +0100, Kuros Yalpani wrote:
> >I installed jde-2.2.6 on top of emacs-20.7 on my windowsNT sucessfully
> >but I am having problems when using the jde-compile command on a java
> >file. I use "cygwin's" bash shell as my command shell. Here is the error
> >I see in the compilation buffer:
> >
> >===
> >
> >cd d:/cvs/App_FeedGui/sources/java/com/compaq/cpl/feed/feedgui/
> >javac -classpath d:/cvs/App_FeedGui/sources/java/classes" MainFrame.java
> >
> >error: cannot read: MainFrame.java
> >1 error
> >
> >Compilation exited abnormally with code 1 at Thu Mar 08 10:30:03
> >
> >
> >===
> >
> >Through some hacking I was able to figure out that the "PWD" environment
> >variable of the bash shell executing the compilation command is NOT set
> >to the buffers current directory, as done by the 'cd' command above.
>
> The JDE does not actually execute a cd command. The above is really an
> informational message that jde-compile generates by concatenating "cd" with
> the directory of the current buffer. I adopted this convention of printing
> the working directory of the executed command from Emacs' standard compile
> command.
>
> Paul

Reply via email to