Hi,
 
have the following setup,
 
Platform: Windows NT SP 5
JDE version: 2.1.6 beta 20
Emacs verison: XEmacs 21.1.9
Shell: Cygwin 20.1 bash
JDK version: 1.2.2 using Hotspot VM 1.0.1
 
I'm using the Cygwin bash shell with my Emacs and I've noticed that when I invoke the JDEbug 'Debug App' from the menu the following error message appears in the status line.
 
Error: debugger failed to start.
 
The JDEbug buffer holds the following:
 
javaw -classpath c:/usr/reazul/lisp/jde-2.1.6beta20/java/src;c:/usr/reazul/lisp/jde-2.1.6beta20/java/lib/jde.jar;c:\jpda1_0-win\lib\jpda.jar jde.debugger.Main

I know the problem has to do with the semi-colons contained above and have
set the jde-quote-classpath to true, as has been stated to get around the problem, however this doesn't resolve the problem.
 
Running and compiling using JDE is not a problem.
 
Reazul Ashraf
 
----------.emacs file-------------------------------
 
;; Set the load paths for the lisp packages
(setq load-path
   (nconc
    '(
      "~/lisp"
      "~/lisp/jde-2.1.6beta20/lisp"
      "~/lisp/w3/lisp"
      "~/lisp/sql-mode"
      "~/lisp/gnuserv"
      "~/lisp/ange-ftp"
      "~/lisp/vm-6.75"
      ;; Add paths to other add-on packages here.
      )
     load-path))
 
;; When running ispell, consider all 1-3 character words as correct.
(setq ispell-extra-args '("-W" "3"))
 
;; lisp packages to load
 
(require 'colours)   ;; use my defined colour/font scheme
(setq load-path (cons "c:/usr/reazul/lisp/cc-mode" load-path)) ;; cc-mode
(require 'jde) ;; Tell Emacs to load the entire JDE package at startup (only once).
 
(defun my-jde-mode-hook () ;; Sets the basic indentation to four spaces
  (imenu-add-to-menubar "Find") 
  (c-set-offset 'topmost-intro-cont 0 t)
  (setq c-comment-continuation-stars "* ")
  (c-set-offset 'statement-block-intro 1 t) ; offset text in blocks
  (setq c-indent-comments-syntactically-p nil)
  (setq c-basic-offset 4))
(add-hook 'jde-mode-hook 'my-jde-mode-hook)
 
(require 'bs)
(global-set-key "\C-x\C-b" 'bs-show)
(require 'babel)
(require 'setnu)
(require 'redo)
 
(gnuserv-start)
 
(add-hook 'shell-mode-hook 'turn-on-font-lock)
(add-hook 'find-file-hooks 'turn-on-font-lock)

;; Set the title bar
(setq frame-title-format
      '("%S: " (buffer-file-name "%f"
                                 (dired-directory dired-directory "%b"))))
 
;; Enable the command `narrow-to-region' ("C-x n n")
(put 'narrow-to-region 'disabled nil)
 
;; Use the "Describe Variable..." option on the "Help" menu
;; to find out what these variables mean.
(setq find-file-use-truenames nil
      find-file-compare-truenames t
      minibuffer-confirm-incomplete t
      complex-buffers-menu-p t
      next-line-add-newlines nil
      mail-yank-prefix "> "
      kill-whole-line t
 )
 
;; setup the VM news reader
;;(require 'vm)
(autoload 'vm "vm" "Start VM on your primary inbox." t)
(autoload 'vm-other-frame "vm" "Like `vm' but starts in another frame." t)
(autoload 'vm-visit-folder "vm" "Start VM on an arbitrary folder." t)
(autoload 'vm-visit-virtual-folder "vm" "Visit a VM virtual folder." t)
(autoload 'vm-mode "vm" "Run VM major mode on a buffer" t)
(autoload 'vm-mail "vm" "Send a mail message using VM." t)
(autoload 'vm-submit-bug-report "vm" "Send a bug report about VM." t)
 
;; support html browsing
(setq load-path (cons "~/lisp/w3" load-path))
(require 'w3-auto)
 
;; support for sql-mode
(setq load-path (cons "c:\user\reazul\lisp\sql-mode/" load-path))
(require 'sql-mode)
;;(sql-initialize)
(autoload 'sql-mode "sql-mode" "" "SQL Editing Mode" t)
(setq auto-mode-alist
(append '(("\\.sql$" . sql-mode)
   ("\\.tbl$" . sql-mode)
   ("\\.sp$"  . sql-mode))
 auto-mode-alist))
 
;; Allow Emacs to interact with windows 95 / NT
(require 'w32-shellex)
(setq w32-shellex-execute-helper "c:/utils/shellex.exe")
 
;; Extra java coloring
(cond ((fboundp 'global-font-lock-mode)
    (require 'extra-java-font-lock)
    (setq font-lock-maximum-decoration t)
    (global-font-lock-mode t)
     ))
 
;; Switch between buffers
(require 'pc-bufsw)
(pc-bufsw::bind-keys [(control tab)] [(control shift tab)])
 
;; Setup Cygwin shell
(setq binary-process-input t)
(setq w32-quote-process-args ?\")
(setq shell-file-name "bash") ;; or sh if you rename your bash executable to sh.
(setenv "SHELL" shell-file-name)
(setq explicit-shell-file-name "C:\\cygnus\\cygwin-b20\\H-i586-cygwin32\\bin\\sh.exe")
(setq explicit-sh-args '("-login" "-i"))
(setq shell-command-switch "-c")
(setq archive-zip-use-pkzip nil)
(setq w32-quote-process-args t)
(setq w32-enable-italics t)
(setq comint-process-echoes nil)
(setq path-separator ":")
    
;; For subprocesses invoked via the shell (e.g., "shell -c command")
(setq shell-file-name "C:\\cygnus\\cygwin-b20\\H-i586-cygwin32\\bin\\sh.exe")
 
;;; resize-minibuffer-mode makes the minibuffer automatically
;;; resize as necessary when it's too big to hold its contents.
(autoload 'resize-minibuffer-mode "rsz-minibuf" nil t)
(resize-minibuffer-mode)
(setq resize-minibuffer-window-exactly nil)
 
;;use page up/down in minibuffer
(global-set-key [minibuffer-local-map up]   'previous-history-element)
(global-set-key [minibuffer-local-map down] 'next-history-element)
 
;; Allow the browse url package to find my copy of netscape.
(setq browse-url-netscape-program
      "C:/PROGRA~1/NETSCAPE/COMMUN~1/PROGRAM/netscape.exe")
 
;;  Add some file extensions to ingnore when completing filenames
(setq completion-ignored-extensions
      (cons ".class" completion-ignored-extensions))
(setq completion-ignored-extensions
      (cons ".exe" completion-ignored-extensions))
(setq completion-ignored-extensions
      (cons ".obj" completion-ignored-extensions))
(setq completion-ignored-extensions
      (cons ".dll" completion-ignored-extensions))
(setq completion-ignored-extensions
      (cons ".com" completion-ignored-extensions))
 
;; use s-region.el
(require 's-region)
(s-region-bind)
(s-region-bind-cua)
 
;; Protect the Messages, and *scratch* buffers.
(require 'keep-buffers)
(keep-buffers-protect-buffer "*scratch*")
(keep-buffers-protect-buffer "*Messages*")
 
;; Stop Emacs from asking for "y-e-s", when a "y" will do.
(fset 'yes-or-no-p 'y-or-n-p)
 
;; Menu additions
;; -Speedbar
 (require 'speedbar)
 (add-menu-button '("Tools")
   ["Speedbar" speedbar-frame-mode
   :style toggle
   :selected (and (boundp 'speedbar-frame)
    (frame-live-p speedbar-frame)
    (frame-visible-p speedbar-frame))]
    "--")
 
;; Key bindings
(global-set-key "\C-x\C-c" nil) ; prevent exit Xemac binding
(global-set-key [(control delete)] 'kill-line) ; KEraseEndLine cDel
(define-key global-map [(shift tab)] 'back-tab-indent)
(global-set-key (quote [f5]) (quote goto-line))
(global-set-key [f1] 'info)
(global-set-key [f2] 'isearch-forward)
(global-set-key [f3] 'replace-string)
(define-key esc-map [f3] 'isearch-forward-regexp)
(define-key isearch-mode-map [f3] 'isearch-repeat-forward)
(global-set-key "\C-z" 'undo) ;; bind C-z to undo
(global-set-key "\C-y" 'redo) ;; bind C-y to redo
(global-set-key [(prior)] 'scroll-down)  ;; restore page-up and page-down
(global-set-key [(next)] 'scroll-up)     ;; after using s-region.el
(define-key jde-mode-map (kbd "RET") 'newline-and-indent)
 
;; --------------------------------------------------------
 
(custom-set-variables
 '(w3-user-fonts-take-precedence nil)
 '(jde-compiler "jikes")
 '(sh-script-package t)
 '(jde-run-working-directory "c:\\usr\\reazul\\FeatureSet")
 '(paren-mode (quote blink-paren) nil (paren))
 '(w3-echo-link (quote (url text title name)))
 '(w3-use-terminal-glyphs nil)
 '(delete-key-deletes-forward t)
 '(jde-bug-jdk-directory "c:\\jdk1.2.2")
 '(w3-use-terminal-characters-on-tty t)
 '(jde-run-option-verbose (quote (nil nil nil)))
 '(column-number-mode t)
 '(whitespace-auto-cleanup t)
 '(w3-use-terminal-characters t)
 '(sgml-package t)
 '(data-directory "c:\\usr\\reazul\\lisp\\sql-mode" t)
 '(speedbar-frame-plist (quote (minibuffer nil width 25 border-width 0 internal-border-width 0 unsplittable t default-toolbar-visible-p nil has-modeline-p nil menubar-visible-p nil)))
 '(jde-run-classic-mode-vm nil)
 '(jde-bug-jpda-directory "c:\\jpda1_0-win")
 '(tab-stop-list (quote (4 8 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 92 96 100 104 108 112 116 120)) t)
 '(jde-jdk-doc-url "file:///C|/jdk1.2.2/docs/index.html")
 '(jde-bug-vm-executable (quote ("javaw")))
 '(tab-width 4)
 '(pending-delete-mode t nil (pending-del))
 '(url-automatic-caching t)
 '(w3-user-colors-take-precedence t)
 '(w3-horizontal-rule-char nil)
 '(jde-compile-option-depend-switch (quote ("-depend")))
 '(jde-compile-option-command-line-args "-g")
 '(jde-compile-option-classpath (quote ("c:\\jdk1.2.2\\jre\\lib\\rt.jar" "c:\\xml4j\\Xerces.jar" "c:\\usr\\reazul\\FeatureSet" "c:\\xmldbms\\xmldbms.jar")))
 '(line-number-mode t)
 '(speedbar-frame-parameters (quote ((minibuffer) (width . 25) (border-width . 0) (menu-bar-lines . 0) (unsplittable . t))))
 '(jde-quote-classpath t)
 '(jde-run-option-application-args nil)
 '(jde-run-java-vm-w "javaw")
 '(Info-button1-follows-hyperlink t)
'(jde-compile-option-deprecation t)
 '(jde-db-debugger (quote ("jdebug" . "Class")))
 '(jde-db-source-directories (quote ("c:\\usr\\reazul\\lisp\\jde/" "c:\\usr\\reazul\\Featureset/")))
 '(gnus-nntp-server "news.intra.bt.com")
 '(query-user-mail-address nil)
 '(gnus-check-new-newsgroups (quote ask-server))
 '(jde-run-option-classpath (quote ("c:\\xml4j\\Xerces.jar" "c:\\xmldbms\\xmldbms.jar" ".")))
 '(jde-bug-jre-home "c:\\jdk1.2.2"))
(custom-set-faces)
 

;; End of .emacs
 

Reply via email to