At 01:44 PM 3/13/00 +0100, Klas Nilsson wrote:
>Paul and Andy,
[snip]
>
>Having understood the principles, I still have problems with
>xemacs and shell/process interaction. Probably not related to JDE
>(similar problems for Netscape etc.) but JDE compile gives
>
> cd h:\klas\Java\tinytest\
> javac -g -d compiled HelloWorld.java
> /c: /c: Permission denied
>
> Compilation exited abnormally with code 126 at Sat Mar 11 08:44:36
>
>no matter what the options or compile command is, but I have nothing
>related to C: or /c in my NT setup. If I issue a M-x shell, I get a
>bash shell and the same cd and javac commands work fine. In my .emacs
>I have the following setq:s according to the JDE Installation Guide,
>Windows part, Installing Cygnus Unix Utilities, item 8:
>
> (require 'jde)
> (add-hook 'java-mode-hook '(lambda () (setq c-basic-offset 2)
> (setq c-comment-only-line-offset 0)))
> (setq binary-process-input t)
> (setq w32-quote-process-args ?\")
> (setq shell-file-name "bash")
> (setenv "SHELL" shell-file-name)
> (setq explicit-shell-file-name shell-file-name)
> (setq explicit-sh-args '("-login" "-i"))
>
>But if I comment out the setq/setenv lines, actually it is the
>(setq shell-file-name "bash")
>(setenv "SHELL" shell-file-name)
>lines that do the difference, the /c problem disappears and compilation
>works OK. Now M-x gives:
>
You get this message because the shell trying to launch javac thusly
bash /c javac ....
that is, using the DOS command shell command switch /c. bash does not
understand this switch because it is a Unix shell.
Add the following
(setq shell-command-switch "-c")
to your hook function. (This is in the JDE setup intructions, BTW).
> Microsoft(R) Windows NT(TM)
> (C) Copyright 1985-1996 Microsoft Corp.
>
> h:\klas>
>
>But cygwin should be working for JDE, and in any case I get
>
> Error starting: "p:\\Cygwin\\contrib\\bin\\netscape.exe", "Invalid argument"
>
>when trying to browse any url via Netscape. Recall I'm
>using the 21.1.9 win32 native version and cygwin1.0. I guess I just did
>something wrong, but I cannot find out what. Any hint where to dig?
>
The phrase "trying to browse any URL via Netscape" means what? You seem to
think that XEmacs is using bash to launch netscape. I do not know whether
this is true, but if it is, please be aware that bash is a Unix shell and
thus does not understand Unix paths.
- Paul
------------------------------------------------------------
JDE mailing list archive:
http://www.mail-archive.com/[email protected]/maillist.html
If you have a problem with the JDE, please use JDE->Help->Submit Problem
Report to prepare your query. This will insure that you include all
information that may be required to solve your problem.