At 10:37 AM 11/9/00 -0500, you wrote:
>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/w
>ordseive/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
Why no classpath? How is the debugger supposed to find
wordseive.calvin.VectorCreator without
a classpath?
- Paul