I had the same problem when the class I was trying to debug was not packaged
correctly and the VM couldn't find it. Does the 'cli' (client?) buffer tell
you anything?

BTW, If anyone is interested, following is some functions I wrote that are
helpful for me. I've got key's bound to them. I tried to write a "toggle
breakpoint" function but couldn't figure out how to do it. I could find no
practical use for the information in the default bottom window so the last
function here replaces the bottom window (the debugger output by default)
with the application's output.

__________________

(defun myjde-bug-kill-debugger()
"Exit the debugger and kill all dead process buffers."
  (interactive)
  (progn
    (jde-bug-exit)
    (jde-bug-remove-dead-processes)
    (delete-other-windows)))

(defun myjde-bug-start-or-continue()
  "Start the debugger if it is not running. Continue from the current point
if it is."
  (interactive)
  (if (jde-dbs-debugger-running-p)
      (jde-bug-continue)
    (progn
      (jde-debug)
      (myjde-bug-show-cli-buf))))

(defun myjde-bug-show-cli-buf ()
  "Show the command-line interface (CLI) buffer of the target process.
This command shows the CLI buffer in the LAST pane of JDEBug's
three-pane window configuration."
  (interactive)
  (let* ((process (jde-dbs-get-target-process))
        (cli-buf (oref process cli-buf))
        (source-window (selected-window)))
    (set-window-configuration (oref process win-cfg))
    (set-window-buffer (next-window (next-window source-window)) cli-buf)
    (select-window source-window)))
___________________________


-----Original Message-----
From: Ralph Jocham [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 10, 2000 11:47 AM
To: [EMAIL PROTECTED]
Subject: Debugging Problem


Hi,
I'm running Emacs 20.6.1 on WinNT4 and using JDE 2.6br22 and Sun JDK 1.3

So Far everything works fine, but it happens that the debugging
doesn't work. Whenever I bring up the debugger I get the

'Could not find the main class. Program will exit!'

message box. The class or better the java file which I wont to
debug is the active buffer and has a main method. A breakpoint
is on the very first line of the main method.

I tried everything (spent over 3 days on that problem now) and
it does not work. Is there a setting which is mandatory and I
haven't found that yet?

Thanks for any help I can get ...

Ralph


This is the output from the Process buffer :

vm started...
All threads suspended...
Launched VM Java Debug Interface (Reference Implementation) version 1.3
Java Debug Wire Protocol (Reference Implementation) version 1.0
JVM Debug Interface version 1.0
JVM version 1.3.0rc2 (Java HotSpot(TM) Client VM, interpreted mode)
Launching vm to run ImageDownload
Setting breakpoint at line 9 in ImageDownload.java.
Running ImageDownload.
ImageDownload process ended.
Application I/O closed
Application I/O closed
Application I/O closed
vm disconnected...
--
___________________________________________________________________

                  The Internet Changes Everything
                            iSolutions
___________________________________________________________________
Ralph Jocham                          e-mail: [EMAIL PROTECTED]
Software Engineer                        phone : (44) 0118 92 43991
Oracle Parkway, Building 520
Thames Valley Park, Reading RG6 1RA
______________________________________________  __  __ _  __ .   __
Opinions are my own and not those of...        (__)|-</-\(__ |__(-_

Reply via email to