Hello,

I have installed and use jde quit a bit.  But I can't 
get jdebug to work.  If I click JDEBug->Processes->
Start Debugger, I get a messag that says: "Debugger
started successfully".  But if I click JDE->Debug App
when my cursor is in a source file (with a breakpoint
added, I get an error.  Here is the info:

Linux Mandrake 7.2
GNU Emacs 20.7.1
JDE 2.2.5.2 (speedbar installed and working)
no project file

NOTE: I'm pretty sure the relvant error is below in the jde buffer.
there is a java.lang.NoClassDefFound error.  How do I fix this?
I can run the application fine without the debugger.

Thanks,


-- 
----------------------------------------------------------------
Travis Bauer | CS Grad Student | IU |www.cs.indiana.edu/~trbauer
----------------------------------------------------------------

----------------------- The error ----------------------------

Signaling: (error "Process *JDEbug* not running")
  process-send-string(#<process *JDEbug*> "\n")
  (let* ((debugger-process ...) (previous-listener ...) (target-process ...) 
(command-line ...)) (setq jde-dbs-debugger-output "") (setq jde-dbs-command-reply "") 
(setq jde-dbs-pending-events nil) (setq jde-dbs-pending-command (oref this id)) (if 
target-process (oset target-process last-cmd this)) (jde-dbs-debugger-display-message 
jde-dbs-the-debugger (concat "JDE> " command-line)) (set-process-filter 
debugger-process (quote jde-dbs-command-reply-listener)) (process-send-string 
debugger-process command-line) (process-send-string debugger-process "\n") (when (not 
...) (message "Error: debugger didn't respond to command:\n%s" command-line) (setq 
jde-dbs-command-reply nil)) (process-send-string debugger-process "\n") 
(set-process-filter debugger-process previous-listener) (if jde-dbs-command-reply (let 
... ... ... ... ... ... ...)))
  jde-dbs-cmd([object jde-dbs-launch-process "Launch wordseive.calvin.VectorCreator" 
[object jde-dbs-proc "process1" 1 "wordseive.calvin.VectorCreator" unbound unbound 
#<buffer Process wordseive.calvin.VectorCreator(1)> #<buffer 
wordseive.calvin.VectorCreator(1) Threads> #<buffer wordseive.calvin.VectorCreator(1) 
Local Variables> nil nil nil [object jde-dbs-proc-state-info "State Info 1" unbound 
unbound unbound unbound] unbound 0 unbound unbound nil unbound #0 unbound nil] 1 
"launch" unbound unbound "Launch command line:\n  java   
wordseive.calvin.VectorCreator  \n" "wordseive.calvin.VectorCreator" unbound "java" " 
" " "])
  apply(jde-dbs-cmd [object jde-dbs-launch-process "Launch 
wordseive.calvin.VectorCreator" [object jde-dbs-proc "process1" 1 
"wordseive.calvin.VectorCreator" unbound unbound #<buffer Process 
wordseive.calvin.VectorCreator(1)> #<buffer wordseive.calvin.VectorCreator(1) Threads> 
#<buffer wordseive.calvin.VectorCreator(1) Local Variables> nil nil nil [object 
jde-dbs-proc-state-info "State Info 1" unbound unbound unbound unbound] unbound 0 
unbound unbound nil unbound #0 unbound nil] 1 "launch" unbound unbound "Launch command 
line:\n  java   wordseive.calvin.VectorCreator  \n" "wordseive.calvin.VectorCreator" 
unbound "java" " " " "])
  (setq rval (apply (car ...) newargs))
  (let ((scoped-class ...)) (setq found t) (setq rval (apply ... newargs)))
  (if (car lambdas) (let (...) (setq found t) (setq rval ...)))
  (while lambdas (if (car lambdas) (let ... ... ...)) (setq lambdas (cdr lambdas)))
  (let ((rval nil) (found nil)) (while lambdas (if ... ...) (setq lambdas ...)) (if 
(not found) (signal ... ...)) rval)
  (let ((newargs nil) (mclass nil) (lambdas nil) (eieio-generic-call-methodname 
method) (eieio-generic-call-arglst args)) (setq newargs args) (if (object-p ...) (setq 
mclass ...)) (if (not scoped-class) (setq lambdas ...)) (if mclass (setq lambdas ...)) 
(if (not scoped-class) (setq lambdas ...)) (if mclass (setq lambdas ...)) (if (not 
scoped-class) (setq lambdas ...)) (if mclass (setq lambdas ...)) (let (... ...) (while 
lambdas ... ...) (if ... ...) rval))
  eieio-generic-call(jde-dbs-cmd-exec ([object jde-dbs-launch-process "Launch 
wordseive.calvin.VectorCreator" [object jde-dbs-proc "process1" 1 
"wordseive.calvin.VectorCreator" unbound unbound #<buffer Process 
wordseive.calvin.VectorCreator(1)> #<buffer wordseive.calvin.VectorCreator(1) Threads> 
#<buffer wordseive.calvin.VectorCreator(1) Local Variables> nil nil nil [object 
jde-dbs-proc-state-info "State Info 1" unbound unbound unbound unbound] unbound 0 
unbound unbound nil unbound #1 unbound nil] 1 "launch" unbound unbound "Launch command 
line:\n  java   wordseive.calvin.VectorCreator  \n" "wordseive.calvin.VectorCreator" 
unbound "java" " " " "]))
  jde-dbs-cmd-exec([object jde-dbs-launch-process "Launch 
wordseive.calvin.VectorCreator" [object jde-dbs-proc "process1" 1 
"wordseive.calvin.VectorCreator" unbound unbound #<buffer Process 
wordseive.calvin.VectorCreator(1)> #<buffer wordseive.calvin.VectorCreator(1) Threads> 
#<buffer wordseive.calvin.VectorCreator(1) Local Variables> nil nil nil [object 
jde-dbs-proc-state-info "State Info 1" unbound unbound unbound unbound] unbound 0 
unbound unbound nil unbound #0 unbound nil] 1 "launch" unbound unbound "Launch command 
line:\n  java   wordseive.calvin.VectorCreator  \n" "wordseive.calvin.VectorCreator" 
unbound "java" " " " "])
  (not (jde-dbs-cmd-exec launch))
  (if (not (jde-dbs-cmd-exec launch)) (progn (jde-dbs-proc-move-to-morgue process) (if 
old-target ...) (jde-dbs-proc-set-state process "unknown") 
(jde-dbs-proc-set-state-reason process "Error launching process.") 
(jde-dbs-proc-set-add jde-dbs-the-process-morgue process) (setq succeededp nil)))
  (when (not (jde-dbs-cmd-exec launch)) (jde-dbs-proc-move-to-morgue process) (if 
old-target (oset jde-dbs-the-process-registry :target-process old-target)) 
(jde-dbs-proc-set-state process "unknown") (jde-dbs-proc-set-state-reason process 
"Error launching process.") (jde-dbs-proc-set-add jde-dbs-the-process-morgue process) 
(setq succeededp nil))
  (let* ((process ...) (old-target ...) (launch ...) (succeededp t)) 
(jde-dbs-proc-set-add jde-dbs-the-process-registry process) (if (not ...) (oset launch 
:jre-home jde-bug-jre-home)) (oset jde-dbs-the-process-registry :target-process 
process) (when (not ...) (jde-dbs-proc-move-to-morgue process) (if old-target ...) 
(jde-dbs-proc-set-state process "unknown") (jde-dbs-proc-set-state-reason process 
"Error launching process.") (jde-dbs-proc-set-add jde-dbs-the-process-morgue process) 
(setq succeededp nil)) succeededp)
  (if (and (jde-dbs-proc-set-find jde-dbs-the-process-registry :main-class main-class) 
(not ...)) nil (let* (... ... ... ...) (jde-dbs-proc-set-add 
jde-dbs-the-process-registry process) (if ... ...) (oset jde-dbs-the-process-registry 
:target-process process) (when ... ... ... ... ... ... ...) succeededp))
  (unless (and (jde-dbs-proc-set-find jde-dbs-the-process-registry :main-class 
main-class) (not ...)) (let* (... ... ... ...) (jde-dbs-proc-set-add 
jde-dbs-the-process-registry process) (if ... ...) (oset jde-dbs-the-process-registry 
:target-process process) (when ... ... ... ... ... ... ...) succeededp))
  (let* ((main-class ...)) (unless (and ... ...) (let* ... ... ... ... ... 
succeededp)))
  jde-bug-launch-process()
  (let ((result ...)) (if result (let ... ... ...)))
  (if (jde-dbs-debugger-running-p) (let (...) (if result ...)))
  jde-bug-debug-app()
  (if (string= (car jde-db-debugger) "JDEbug") (jde-bug-debug-app) (jde-db))
  jde-debug()
* call-interactively(jde-debug)

--------------------------------- jde buffer ------------------------------

cd /home/trbauer/javaroot/wordseive/calvin/
java -classpath 
/usr/lib/emacs/site-lisp/jde-2.2.5/java/lib/jde.jar:/home/trbauer/javaroot/wordseive/calvin/e:/jdk1.3/lib/tools.jar
 jde.debugger.Main


(jde-dbo-init-debug-session)
JDE> -1 1 launch 1 -vmexec java   wordseive.calvin.VectorCreator  


java.lang.NoClassDefFoundError: com/sun/jdi/connect/VMStartException
        at jde.debugger.command.DebugCommandFactory.<init>(DebugCommandFactory.java:32)
        at 
jde.debugger.command.DebugCommandFactory.<clinit>(DebugCommandFactory.java:64)
        at jde.debugger.Jdebug.run(Jdebug.java:159)

Process *JDEbug* finished


-------------------------------- messages buffer -----------------------------

Loading backquote...
Loading backquote...done
Loading paren...
Loading cus-face...
Loading cus-face...done
Loading paren...done
Loading timer...
Loading timer...done
Loading regexp-opt...
Loading regexp-opt...done
Loading /etc/emacs/site-start.d/auctex.el (source)...
Loading /etc/emacs/site-start.d/auctex.el (source)...done
Loading /etc/emacs/site-start.d/emacs-tramp.el (source)...
Loading advice...
Loading advice...done
Loading /etc/emacs/site-start.d/emacs-tramp.el (source)...done
Loading /etc/emacs/site-start.d/eshell.el (source)...
Loading /etc/emacs/site-start.d/eshell.el (source)...done
Loading /etc/emacs/site-start.d/gnus.el (source)...
Loading /etc/emacs/site-start.d/gnus.el (source)...done
Loading /etc/emacs/site-start.d/ocaml.el (source)...
Loading /etc/emacs/site-start.d/ocaml.el (source)...done
Loading /etc/emacs/site-start.d/pcomplete.el (source)...
Loading /etc/emacs/site-start.d/pcomplete.el (source)...done
Loading /etc/emacs/site-start.d/rpm.el (source)...
Loading /etc/emacs/site-start.d/rpm.el (source)...done
Loading /etc/emacs/site-start.d/ruby.el (source)...
Loading /etc/emacs/site-start.d/ruby.el (source)...done
Loading wid-browse...
Loading wid-browse...done
Loading cl-macs...
Loading cl-macs...done
Bootstrapping objects...
Bootstrapping objects...done
Loading cl-extra...
Loading cl-extra...done
Loading paren...
Loading paren...done
Loading cl-seq...
Loading cl-seq...done
Setting JDE variables to startup values...
Fontifying VectorCreator.java...
Fontifying VectorCreator.java... (regexps.........................................)
Setting JDE variables to startup values...
No response to command 1. (process = 1; timeout = 10 sec.)
Loading debug...
Loading debug...done
Entering debugger...
 [2 times]
Wrote /home/trbauer/emacserror.txt

--------------------------------- .emacs file ---------------------------


(setq debug-on-error t)

(load-library "paren")
(global-set-key [?\C-h] 'delete-backward-char)
(custom-set-faces)
(setq-default transient-mark-mode t)

;; jde stuff
(autoload 'speedbar-frame-mode "speedbar" "Popup a speedbar frame" t)
(autoload 'speedbar-get-focus "speedbar" "Jump to speedbar frame" t)

;; key bindings
(global-set-key [home] 'beginning-of-line)
(global-set-key [end] 'end-of-line)
(global-set-key "\M-g" 'goto-line)


;; colors
;(set-face-foreground 'default "black")
;(set-face-background 'default "white")
;(set-foreground-color "black")
;(set-background-color "white")
(custom-set-variables
 '(pc-select-meta-moves-sexps t)
 '(jde-bug-jdk-directory "e:/jdk1.3/")
 '(jde-run-read-app-args t)
 '(jde-db-source-directories (quote ("/usr/local/jdk1.3/src" 
"/home/trbauer/javaroot/")))
 '(jde-db-debugger (quote ("JDEbug" "" . "Executable")))
 '(pc-select-selection-keys-only t)
 '(jde-bug-jpda-directory "/usr/local/jkd1.3/")
 '(jde-bug-vm-includes-jpda-p t)
 '(pc-selection-mode t t))

;; ---------- Constants -------------
(setq my-username "trbauer")
(setq user-mail-address "[EMAIL PROTECTED]")

;; ---------- Other cool stuff
(setq inhibit-startup-message t)

;; ---------- Java Mode -------------
(add-hook 'java-mode-hook
        (function
         (lambda ()
                (define-key java-mode-map "\C-m" 'newline-and-indent)
                (local-set-key "\C-c\C-c" 'jde-compile)
                (local-set-key "\C-c\C-r" 'jde-run)
                ;; indentation rules are stored in c-offsets-alist
                (setq c-basic-offset 2)
                )))
(require 'jde)

Reply via email to