That's weird! You're right, when I run bash from Start -> run, javac and java works, however, javaw doesn't. When I type "set" in bash for "path" I get the following line: PATH=.:/FSF/BIN:/FSF/EMACS/BIN:/WINDOWS:/WINDOWS/COMMAND:/PROGRA~1/DEVTOOLS/MIKTEX/TEXMF/MIKTEX/BIN:/PROGRA~1/DEVTOOLS/RATIONAL/COMMON:.:/PROGRA~1/DEVTOOLS/TCL/BIN:/PROGRA~1/DEVTOOLS/JDK1.2.2/BIN:/PROGRA~1/DEVTOOLS/TCL/BIN:/IMNNQ_95:/PROGRA~1/DEVTOOLS/TCL/BIN "/PROGRA~1/DEVTOOLS/JDK1.2.2/BIN:" is in there. But what I find very confusing is that javac and java works, which is in the same place as javaw. But when I type "javaw" in a bash box I get: "C:/FSF/BIN/bash.exe"-2.02$ javaw "C:/FSF/BIN/bash.exe"-2.02$ Nothing happens. However, when I type it in Emacs's bash I get the proper reaction. JDE, however, gives me the error "Searching for program: no such file or directory, javaw". Daniel P.S. I attached the output of "set" called from Start -> run "bash" (bashbox.txt) and from the M-x shell bash (bashemacs.txt). They look a little different, but I'm not a Ux guru, I don't know if it's supposed to be different. >Hmmm...maybe that's the reason. Maybe you have a .bashrc or something >which is messing with your path. > >What if you run "bash" from the Windows Start Menu. Then, within the bash >window, type "javac". Does that work? If not, then perhaps you have >bash-induced path problems. > >I just thought of something else. I don't know how the JDK installs >itself, but when you install Python it does some Windows (registry?) magic >so that the command "python" works even if the directory containing >python.exe isn't in your PATH. However, this mechanism doesn't work from >Emacs, and you must explicitly set the correct PATH. If the previous idea >doesn't pan out, then try this one (with respect to "javac", naturally, not >"python"). > >- Jonathan > > >At 06:19 PM 5/25/00 EDT, Daniel Hegyi wrote: > >I've tried. Still doesn't work. Actually, something weird happens that >might > >shed light on the problem: I click on compile in the JDE menu, which >works > >fine. Then I click on "Run App", which gives me the error "Searching for > >program: no such file or directory, javaw". If I now click on "Compile" > >again, it does so, but it opens simultaneously a DOS box, which says >"javac" > >in the title bar, and closes once the compilation finishes. The DOS box > >itself contains no commands. > > > >It is also strange, because I've set bash to be my shell. > > > > > > > >>I see this message for other programs (grep, etc.), but the second time >it > >>works. Seems like some sort of list is getting built internally by >emacs > >>at > >>the first call and then is available the second call. Have you tried >just > >>running again? > >> > >> > -----Original Message----- > >> > From: Daniel Hegyi [mailto:[EMAIL PROTECTED]] > >> > Sent: Thursday, May 25, 2000 11:05 AM > >> > To: [EMAIL PROTECTED] > >> > Subject: "Searching for program: no such file or directory, javaw" > >> > > >> > > >> > Hi! I'm new to JDE. I just installed beta24 under Win98 with > >> > Emacs 20.6.1. I > >> > can compile, however, when I try to "Run App" I get the error: > >>"Searching > >> > for program: no such file or directory, javaw" > >> > > >> > When I type "javaw" in a DOS box, it recognizes it. (It's in my >path.) > >> > > >> > Does anybody have any ideas? > >> > > >> > Thanks, > >> > Daniel > >> > >________________________________________________________________________ > >> > Get Your Private, Free E-mail from MSN Hotmail at >http://www.hotmail.com > >> > > >> > > >> > > > >________________________________________________________________________ > >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > > > > > ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
BASH=/bin/sh BASH_VERSINFO=([0]="2" [1]="02" [2]="1" [3]="2" [4]="release" [5]="i586-pc-cygwin32") BASH_VERSION='2.02.1(2)-release' BLASTER='A220 I5 D1' CLASSPATH='.;C:\PROGRA~1\DevTools\jdk1.2.2\lib\classes.zip;\swing.jar' CMDLINE=WIN CM_PATH='"c:\program files\devtools\sml\lib"' COMSPEC='C:\COMMAND.COM' DIRSTACK=() DJGPP='c:\fsf\djgpp.env' EUID=500 GCC_EXEC_PREFIX='c:\fsf\lib\gcc-lib\' GROUPS=() HISTFILE=/fsf/.bash_history HISTFILESIZE=500 HISTSIZE=500 HOME=/fsf HOSTNAME=dh249 HOSTTYPE=i586 IFS=' ' IMNINSTSRV='c:\IMNNQ_95' JAVA_COMPILER=NONE JAVA_HOME='C:\PROGRA~1\DevTools\jdk1.2.2' MACHTYPE=i586-pc-cygwin32 MAILCHECK=60 OPTERR=1 OPTIND=1 OSTYPE=cygwin32 PATH=/WINDOWS:/WINDOWS:/WINDOWS/COMMAND:/FSF/BIN:/FSF/EMACS/BIN:.:/PROGRA~1/DEVTOOLS/MIKTEX/TEXMF/MIKTEX/BIN:/PROGRA~1/DEVTOOLS/RATIONAL/COMMON:/PROGRA~1/DEVTOOLS/JDK1.2.2/BIN:/PROGRA~1/DEVTOOLS/JDK1.2.2/JPDA1_0/BIN:/PROGRA~1/DEVTOOLS/TCL/BIN:/IMNNQ_95:/PROGRA~1/DEVTOOLS/TCL/BIN PIPESTATUS=([0]="0") PPID=1013 PROMPT='$p$g' PS1='\s-\v\$ ' PS2='> ' PS4='+ ' PWD=/WINDOWS/Desktop SHELL=/bin/sh SHELLOPTS=braceexpand:hashall:histexpand:monitor:history:interactive-comments:emacs SHLVL=1 TEMP='C:\windows\TEMP' TERM=cygwin TMP='c:\windows\TEMP' UID=500 WINBOOTDIR='C:\WINDOWS' WINDIR='C:\WINDOWS' _=set
bash.exe-2.02$ set BASH=/fsf/bin/bash.exe BASH_VERSINFO=([0]="2" [1]="02" [2]="1" [3]="2" [4]="release" [5]="i586-pc-cygwin32") BASH_VERSION='2.02.1(2)-release' BLASTER='A220 I5 D1' CLASSPATH='.;C:\PROGRA~1\DevTools\jdk1.2.2\lib\classes.zip;\swing.jar' CMDLINE=WIN CM_PATH='"c:\program files\devtools\sml\lib"' COMSPEC='C:\COMMAND.COM' DIRSTACK=() DJGPP='c:\fsf\djgpp.env' EMACS=t EMACSDATA=C:/FSF/EMACS/etc EMACSDOC=C:/FSF/EMACS/etc EMACSLOADPATH='C:/FSF/EMACS/site-lisp;C:/FSF/EMACS/lisp;C:/FSF/EMACS/leim' EMACSLOCKDIR=C:/FSF/EMACS/lock EMACSPATH=C:/FSF/EMACS/bin EMACS_DIR=C:/FSF/EMACS EM_PARENT_PROCESS_ID=-471495 EUID=500 GCC_EXEC_PREFIX='c:\fsf\lib\gcc-lib\' GROUPS=() GS_LIB='c:\Program Files\gstools\gs5.50;c:\Program Files\gstools\gs5.50\fonts' HISTFILE=/fsf/.bash_history HISTFILESIZE=500 HISTSIZE=500 HOME=/fsf HOSTNAME=dh249 HOSTTYPE=i586 IFS=' ' IMNINSTSRV='c:\IMNNQ_95' JAVA_COMPILER=NONE JAVA_HOME='C:\PROGRA~1\DevTools\jdk1.2.2' MACHTYPE=i586-pc-cygwin32 MAILCHECK=60 OPTERR=1 OPTIND=1 OSTYPE=cygwin32 PATH=.:/FSF/BIN:/FSF/EMACS/BIN:/WINDOWS:/WINDOWS/COMMAND:/PROGRA~1/DEVTOOLS/MIKTEX/TEXMF/MIKTEX/BIN:/PROGRA~1/DEVTOOLS/RATIONAL/COMMON:.:/PROGRA~1/DEVTOOLS/TCL/BIN:/PROGRA~1/DEVTOOLS/JDK1.2.2/BIN:/PROGRA~1/DEVTOOLS/TCL/BIN:/IMNNQ_95:/PROGRA~1/DEVTOOLS/TCL/BIN PPID=1012 PROMPT='$p$g' PS1='\s-\v\$ ' PS2='> ' PS4='+ ' PWD=/fsf/emacs/bin SHELL=c:/fsf/bin/bash.exe SHELLOPTS=braceexpand:hashall:histexpand:monitor:history:interactive-comments:emacs SHLVL=1 TEMP='C:\windows\TEMP' TERM=emacs TERMCAP=emacs:co#81:tc=unknown: TMP='c:\windows\TEMP' TMPDIR='C:\windows\TEMP' UID=500 WINBOOTDIR='C:\WINDOWS' WINDIR='C:\WINDOWS' _=/fsf/bin/bash.exe bash.exe-2.02$
