Hi Carroll,
thanks for the hint with CLI output window. It shows the following :
Java HotSpot(TM) Client VM warning: Setting of property "java.compiler" is
ignored java.lang.NoClassDefFoundError: oracle/ewt/lwAWT/BufferedFrame
But the class is on my classpath, the very first .zip file includes this class:
Jde Global Classpath: [Hide]
[INS] [DEL] Path: R:\jtools_common\cp\ewt-dbg-3_2_6.zip
[INS] [DEL] Path: R:\jtools_common\cp\ewtcompat-dbg-3_2_6.zip
[INS] [DEL] Path: R:\jtools_common\cp\help-dbg-3_0_11.jar
[INS] [DEL] Path: R:\jtools_common\cp\javax_ejb.zip
...
(I even tried to have an no Jde Global Classpath and to use the one which is
active on the command prompt.)
If I make 'M-! and then javap oracle.ewt.lwAWT.BufferedFrame' I get the
following output, which shows that the classpath is correct.
Compiled from BufferedFrame.java
public synchronized class oracle.ewt.lwAWT.BufferedFrame extends
oracle.ewt.popup.PopupFrame implements oracle.ewt.lwAWT.ImmediatePainter ,
oracle.ewt.lwAWT.DoubleBufferer , oracle.ewt.help.HelpCapable ,
oracle.ewt.lwAWT.VirtualComponent , oracle.ewt.lwAWT.FocusRoot ,
oracle.ewt.lwAWT.KeyProcessor
/* ACC_SUPER bit set */
{
public oracle.ewt.lwAWT.BufferedFrame();
public oracle.ewt.lwAWT.BufferedFrame(java.lang.String);
public void setLookAndFeel(oracle.ewt.LookAndFeel);
public oracle.ewt.LookAndFeel getLookAndFeel();
public void setColorScheme(oracle.ewt.ColorScheme);
public oracle.ewt.ColorScheme getColorScheme();
...
Do the classes have to be compiled with the JDK1.3 from which I use the java
and javaw
command or can I use the debugger on any .class file?
Thanks for any help
Ralph
Jim Carroll wrote:
>
> 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... (__)|-</-\(__ |__(-_
--
___________________________________________________________________
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... (__)|-</-\(__ |__(-_
begin:vcard
n:Jocham;Ralph
tel;fax:+44 118 92 45148
tel;work:+44 118 92 43991
x-mozilla-html:FALSE
url:www.oracle.com
org:Oracle Corp.;CASE
version:2.1
email;internet:[EMAIL PROTECTED]
title:Software Engineer
adr;quoted-printable:;;Oracle Parkway 520 TVP=0D=0A;Reading;Berkshire;RG6 1RA;United Kingdom
x-mozilla-cpt:;0
fn:Ralph Jocham
end:vcard