greetings;
i have attempted to get JDEbug to function and i have not been successful.
i have made the modifications suggested in the jdebug users guide.
here is the error i receive in the buffer called
com.singingfish.app.MinimalStreamReaderDOM(1)
Error: debugger unable to launch
com.singingfish.cpp.apps.MinimalStreamReaderDOM.
Reason: VM initialization failed for: C:/Program
Files/JavaSoft/JRE/1.3.0_01/bin/javaw -classic -Xdebug -Xnoagent
-Djava.compiler=NONE
-Xrunjdwp:transport=dt_shmem,address=javadebug,suspend=y -classpath
u:/dest_classpath;s:/java/jars/jdbc2_0-stdext/lib/jdbc2_0-stdext.jar;s:/java/jars/jta-spec1_0_1/jta-spec1_0_1.jar;s:/java/jars/jndi1_2_1/lib/jndi.jar;s:/java/jars/ldap1_2_1/lib/providerutil.jar;s:/java/jars/rmiregistry1_2_1/lib/rmiregistry.jar;s:/java/jars/oracle_jdbc/lib/classes12.zip;s:/java/jars/xerces_1_0_3/xerces.jar;s:/java/jars/Xalan/xalan.jar;s:/java/jars/toplink/TOPLink.jar;s:/java/jars/toplink/Tools.jar;s:/java/jars/toplink/TOPLinkX.jar;s:/java/jars/PerlTools-1.2.0a/PerlTools.jar;s:/java/jars/servlet1_2_2/servlet.jar;s:/java/jars/oracle_aq/aqapi.jar;s:/java/jars/aimie_1_0_0/aimie.jar;s:/java/jars/junit3_5/junit.jar;s:/java/jars/oreilly_1_0_0/oreilly.jar;s:/java/jars/javamail_1_1_3/mail.jar;s:/java/jars/quicktime_4_1/QTJava.zip;s:/java/jars/jaf_1_0_1/activation.jar;s:/java/jars/ant_1.3
com.singingfish.cpp.apps.MinimalStreamReaderDOM
VM options: '-classic '
current state:
==============
(setq DELETED BECAUSE IT DID AWFUL THINGS TO PINE THE WHEN I TRIED TO
PASTE IT IN and it didnt seem to copy to the file that i created either )
Emacs : GNU Emacs 20.7.1 (i386-*-nt5.0.2195)
of Tue Jun 13 2000 on buffy
Package: JDE version 2.2.7beta6
The contents of the *JDEBug* buffer were
cd U:/dest_classpath/com/singingfish/cpp/apps
javaw -classpath
c:/emacs-20.7/site-lisp/jde/java/lib/jde.jar;c:/jdk1.3/lib/tools.jar
jde.debugger.Main
(jde-dbo-init-debug-session)
JDE> -1 1 launch 1 -vmexec javaw -classic -classpath
u:/dest_classpath;s:/java/jars/jdbc2_0-stdext/lib/jdbc2_0-stdext.jar;s:/java/jars/jta-spec1_0_1/jta-spec1_0_1.jar;s:/java/jars/jndi1_2_1/lib/jndi.jar;s:/java/jars/ldap1_2_1/lib/providerutil.jar;s:/java/jars/rmiregistry1_2_1/lib/rmiregistry.jar;s:/java/jars/oracle_jdbc/lib/classes12.zip;s:/java/jars/xerces_1_0_3/xerces.jar;s:/java/jars/Xalan/xalan.jar;s:/java/jars/toplink/TOPLink.jar;s:/java/jars/toplink/Tools.jar;s:/java/jars/toplink/TOPLinkX.jar;s:/java/jars/PerlTools-1.2.0a/PerlTools.jar;s:/java/jars/servlet1_2_2/servlet.jar;s:/java/jars/oracle_aq/aqapi.jar;s:/java/jars/aimie_1_0_0/aimie.jar;s:/java/jars/junit3_5/junit.jar;s:/java/jars/oreilly_1_0_0/oreilly.jar;s:/java/jars/javamail_1_1_3/mail.jar;s:/java/jars/quicktime_4_1/QTJava.zip;s:/java/jars/jaf_1_0_1/activation.jar;s:/java/jars/ant_1.3
com.singingfish.cpp.apps.MinimalStreamReaderDOM
(jde-dbo-message 1 "VM options: '-classic '")
(jde-dbo-command-error
1 "VM initialization failed for: C:/Program
Files/JavaSoft/JRE/1.3.0_01/bin/javaw -classic -Xdebug -Xnoagent
-Djava.compiler=NONE
-Xrunjdwp:transport=dt_shmem,address=javadebug,suspend=y -classpath
u:/dest_classpath;s:/java/jars/jdbc2_0-stdext/lib/jdbc2_0-stdext.jar;s:/java/jars/jta-spec1_0_1/jta-spec1_0_1.jar;s:/java/jars/jndi1_2_1/lib/jndi.jar;s:/java/jars/ldap1_2_1/lib/providerutil.jar;s:/java/jars/rmiregistry1_2_1/lib/rmiregistry.jar;s:/java/jars/oracle_jdbc/lib/classes12.zip;s:/java/jars/xerces_1_0_3/xerces.jar;s:/java/jars/Xalan/xalan.jar;s:/java/jars/toplink/TOPLink.jar;s:/java/jars/toplink/Tools.jar;s:/java/jars/toplink/TOPLinkX.jar;s:/java/jars/PerlTools-1.2.0a/PerlTools.jar;s:/java/jars/servlet1_2_2/servlet.jar;s:/java/jars/oracle_aq/aqapi.jar;s:/java/jars/aimie_1_0_0/aimie.jar;s:/java/jars/junit3_5/junit.jar;s:/java/jars/oreilly_1_0_0/oreilly.jar;s:/java/jars/javamail_1_1_3/mail.jar;s:/java/jars/quicktime_4_1/QTJava.zip;s:/java/jars/jaf_1_0_1/activation.jar;s:/java/jars/ant_1.3
com.singingfish.cpp.apps.MinimalStreamReaderDOM")
JDE> 1 2 break absolute MinimalStreamReaderDOM.java 115
(jde-dbo-error
1 "Error occurred while executing
break. Error: jde.debugger.JDEException: Application 1 does not exist")
JDE> 1 3 run
(jde-dbo-error
1 "Error occurred while executing
run. Error: jde.debugger.JDEException: Application 1 does not exist")
End Insert *JDEbug* buffer
There is no CLI buffer
The contents of the locals buffer are
End Insert locals buffer
There was no *Backtrace* buffer
The contents of the *Messages* buffer were
Loading regexp-opt...done
Loading advice...
Loading advice...done
Loading time...
Loading time...done
Loading diary-lib...
Loading diary-lib...done
Loading env...
Loading env...done
Loading backquote...
Loading backquote...done
Bootstrapping objects...
Bootstrapping objects...done
Loading cl-extra...
Loading cl-extra...done
Loading cl-macs...
Loading cl-macs...done
jde-java-font-lock: building names cache...
jde-java-font-lock: building names cache...empty
Loading cl-seq...
Loading cl-seq...done
For information about the GNU Project and its goals, type C-h C-p.
Fontifying *scratch*...
Fontifying *scratch*... (regexps............)
For information about the GNU Project and its goals, type C-h C-p.
Making completion list...
Loading view...
Loading view...done
Loading eieio-opt...
Loading eieio-opt...done
Setting JDE variables to startup values...
Fontifying MinimalStreamReaderDOM.java...
Fontifying
MinimalStreamReaderDOM.java... (regexps....................................)
Setting JDE variables to startup values... [2 times]
Beginning of buffer [2 times]
Mark saved where search started
Fontifying *JDEbug*...
Fontifying *JDEbug*... (syntactically...)
menu-bar JDE Debug App
Fontifying *JDEbug*...
Fontifying *JDEbug*... (regexps....)
menu-bar JDE Debug App
No response to command 2. (process = 1; timeout = 30 sec.)
No response to command 3. (process = 1; timeout = 30 sec.)
Preparing problem report...
Loading sendmail...
Loading sendmail...done
Formatting bug report buffer...
Formatting bug report
buffer..................................................................................
Mark set [3 times]
End Insert *Messages* buffer
Process environment:
EMACSDOC=C:/emacs-20.7/etc
EMACSLOCKDIR=C:/emacs-20.7/lock
EMACSPATH=C:/emacs-20.7/bin
EMACSDATA=C:/emacs-20.7/etc
SHELL=u:/bash.bat
EMACSLOADPATH=C:/emacs-20.7/site-lisp;C:/emacs-20.7/lisp;C:/emacs-20.7/leim
TMPDIR=C:\DOCUME~1\UTZSEA~1.000\LOCALS~1\Temp
windir=C:\WINNT
USERPROFILE=C:\Documents and Settings\utz.SEATTLE.000
USERNAME=utz
USERDOMAIN=SEATTLE
USERDNSDOMAIN=seattle.singingfish.com
TMP=C:\DOCUME~1\UTZSEA~1.000\LOCALS~1\Temp
TERM=vt100
TEMP=C:\DOCUME~1\UTZSEA~1.000\LOCALS~1\Temp
SystemRoot=C:\WINNT
SystemDrive=C:
SP_ENCODING=XML
SP_CHARSET_FIXED=YES
SGML_CATALOG_FILES=C:\cygwin\usr\local\lib\sgml\dtd\html\xml.soc
ProgramFiles=C:\Program Files
PROCESSOR_REVISION=0803
PROCESSOR_LEVEL=6
PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 3, GenuineIntel
PROCESSOR_ARCHITECTURE=x86
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Support
Tools\;c:\jdk1.3\bin;c:\cygwin\bin;c:\cygwin\usr\local\bin;c:\ssh;C:\Perl\bin\;C:\Python20\;C:\PROGRA~1\Tcl\bin;c:\emacs-20.7\bin;C:\gnuplot\gp371w32;c:\infozip;v:\utz;v:\utz\sf_code\cpp\cracker\singingCracker\dll\Debug;C:\Program
Files\Microsoft Platform SDK\Bin\;C:\Program Files\Microsoft Platform
SDK\Bin\WinNT;
Os2LibPath=C:\WINNT\system32\os2\dll;
OS=Windows_NT
NUMBER_OF_PROCESSORS=1
Mstools=C:\Program Files\Microsoft Platform SDK\
MSSdk=C:\Program Files\Microsoft Platform SDK\
LOGONSERVER=\\DC1
LOCAL_SOURCE_ROOT=v:\utz\sf_code
LIB=C:\Program Files\Microsoft Platform SDK\Lib\
INETSDK=C:\Program Files\Microsoft Platform SDK\
INCLUDE=C:\Program Files\Microsoft Platform SDK\Include\;C:\Program
Files\Microsoft Platform SDK\Include\Atl30\
HOMEPATH=\
HOMEOLD=C:\cygwin\home\utz
HOMEDRIVE=C:
HOME=V:\utz
emacs_dir=C:/emacs-20.7
DXSDKROOT=C:\Program Files\Microsoft Platform SDK\
DEV_ROOT=v:\utz\sf_code\java\src
DEST_CLASSPATH=v:\utz\dest_classpath
COMSPEC=C:\WINNT\system32\cmd.exe
COMPUTERNAME=JUTZ
CommonProgramFiles=C:\Program Files\Common Files
CLASSPATH=c:\Program Files\JavaSoft\JRE\lib\ext;
Bkoffice=C:\Program Files\Microsoft Platform SDK\
Basemake=C:\Program Files\Microsoft Platform SDK\Include\BKOffice.Mak
APPDATA=C:\Documents and Settings\utz.SEATTLE.000\Application Data
ALLUSERSPROFILE=C:\Documents and Settings\All Users
The contents of the .emacs file was
; CUSTOMS for LOTS OF STUFF THAT I REFERENCE ELSEWHERE! THIS IS NOT ZESTY
(custom-set-variables
'(show-paren-style (quote mixed))
'(default-frame-alist (quote ((background-color
. "gray55") (menu-bar-lines . 1) (height . 70))))
'(c-font-lock-extra-types (quote
("FILE" "DWORD" "bool" "HANDLE" "HRESULT" "HINTERNET" "\\sw+_t" "\\sw+STR")))
'(jde-bug-jdk-directory "c:/jdk1.3/")
'(show-paren-mode t nil (paren))
'(jde-db-source-directories (quote
("U:/sf_code/cpp/com/singingfish/cpp/apps")))
'(jde-db-debugger (quote ("JDEbug" "" . "Executable")))
'(jde-run-working-directory "U:/dest_classpath/com/singingfish/cpp/apps")
'(jde-global-classpath (quote
("u:/dest_classpath" "s:/java/jars/jdbc2_0-stdext/lib/jdbc2_0-stdext.jar"
"s:/java/jars/jta-spec1_0_1/jta-spec1_0_1.jar" "s:/java/jars/jndi1_2_1/lib/jndi.jar"
"s:/java/jars/ldap1_2_1/lib/providerutil.jar"
"s:/java/jars/rmiregistry1_2_1/lib/rmiregistry.jar"
"s:/java/jars/oracle_jdbc/lib/classes12.zip" "s:/java/jars/xerces_1_0_3/xerces.jar"
"s:/java/jars/Xalan/xalan.jar" "s:/java/jars/toplink/TOPLink.jar"
"s:/java/jars/toplink/Tools.jar" "s:/java/jars/toplink/TOPLinkX.jar"
"s:/java/jars/PerlTools-1.2.0a/PerlTools.jar" "s:/java/jars/servlet1_2_2/servlet.jar"
"s:/java/jars/oracle_aq/aqapi.jar" "s:/java/jars/aimie_1_0_0/aimie.jar"
"S:/java/jars/junit3_5/junit.jar" "S:/java/jars/oreilly_1_0_0/oreilly.jar"
"S:/java/jars/javamail_1_1_3/mail.jar" "S:/java/jars/quicktime_4_1/QTJava.zip"
"S:/java/jars/jaf_1_0_1/activation.jar" "S:/java/jars/ant_1.3")))
'(frame-background-mode (quote dark))
'(jde-bug-vm-includes-jpda-p t)
'(global-font-lock-mode t nil (font-lock))
'(w3-user-colors-take-precedence t)
'(font-lock-global-modes t)
'(jde-run-classic-mode-vm t))
(custom-set-faces
'(font-lock-comment-face ((((class color) (background dark)) (:foreground
"DarkGreen"))))
'(font-lock-string-face ((((class color) (background dark)) (:foreground
"deep sky blue")))))
; MISC
(require 'gnuserv)
(gnuserv-start)
(setq max-specpdl-size 1000) ; helps with byte-compiles
(setq debug-on-error t) ; help for finding broken elisp
(set-background-color "grey55")
(setq load-path (cons "c:/emacs-20.7/site-lisp/" load-path))
; unicode support. might not be helpful
(setq load-path (cons
"c:/emacs-20.7/site-lisp/Mule-UCS-0.83/lisp" load-path))
(require 'un-define)
(require 'find-recursive)
; W3
(setq load-path (cons
"C:/emacs-20.7/site-lisp/w3/w3-4.0pre.46/lisp" load-path))
(require 'w3-auto)
(setq w3-default-homepage "http://lamprey.singingfish.com")
(setq w3-use-terminal-characters t)
; CALENDAR
(display-time)
(add-hook 'diary-hook 'appt-make-list)
(setq appt-issue-message t)
(setq appt-message-warning-time 4320)
(diary 0)
; TELNET
(defvar telnet-host-properties
'("coelacanth" "c:/cygwin/bin/telnet.exe" "utz"))
(require 'telnet)
(setq telnet-program "c:/cygwin/bin/telnet.exe")
(defun telnet (host)
"Open a network login connection to host named HOST (a string).
Communication with HOST is recorded in a buffer `*telnet-HOST*'.
Normally input is edited in Emacs and sent a line at a time."
(interactive "sOpen telnet connection to host: ")
(let* ((comint-delimiter-argument-list '(?\ ?\t))
(name (concat "telnet-" (comint-arguments host 0 nil) ))
(buffer (get-buffer (concat "*" name "*")))
process)
(cond ((string-equal system-type "windows-nt")
(setq telnet-new-line "\n")))
(if (and buffer (get-buffer-process buffer))
(pop-to-buffer (concat "*" name "*"))
(pop-to-buffer (make-comint name telnet-program nil host))
(setq process (get-buffer-process (current-buffer)))
(set-process-filter process 'telnet-initial-filter)
(accept-process-output process) (telnet-mode)
(setq comint-input-sender 'telnet-simple-send)
(setq telnet-count telnet-initial-count))))
; SHELL -with java compilation stuff
; use bash as the default shell but add java path stuff with batch file
; me so hacky!
(setq shell-file-name "u:/bash.bat")
(setenv "SHELL" shell-file-name)
(setq explicit-shell-file-name shell-file-name)
(setq explicit-shell-args '("--login" "-i"))
(setq shell-command-switch "-ic")
(setq w32-quote-process-args t)
(if (boundp 'w32-quote-process-args)
(setq w32-quote-process-args ?\"))
(defun bash ()
(interactive)
(let ((binary-process-input t)
(binary-process-output nil))
(shell)))
(setq process-coding-system-alist (cons '("bash" . (raw-text-dos
. raw-text-unix))
process-coding-system-alist))
; MISC CODE STUFF
(require 'paren)
(setq show-paren-mode t)
;; Turn on syntax coloring
(cond ((fboundp 'global-font-lock-mode)
;; Turn on font-lock in all modes that support it
(global-font-lock-mode t)
;; maximum colors
(setq font-lock-maximum-decoration t)))
; C AND JAVA
(setq load-path
(append (list "C:/emacs-20.7/site-lisp/jde/lisp"
"C:/emacs-20.7/site-lisp/semantic"
"C:/emacs-20.7/site-lisp/speedbar"
"C:/emacs-20.7/site-lisp/elib"
"C:/emacs-20.7/site-lisp/eieio")
load-path))
(setq compile-command "ant -emacs")
(setq c-basic-offset 2)
(defconst my-c-style
'((c-echo-syntactic-information-p . t)
)
"My C* Syntax Style")
(defun my-c-mode-common-hook ()
(c-add-style "PERSONAL" my-c-style t)
(c-toggle-auto-hungry-state t)
(auto-fill-mode t)
)
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
(require 'jde)
;; Sets the basic indentation for Java source files
;; to two spaces.
(defun my-jde-mode-hook ()
(setq c-basic-offset 2))
(add-hook 'jde-mode-hook 'my-jde-mode-hook)
; SGML XML
; XSLT minor mode
(setq load-path (cons "c:/emacs-20.7/site-lisp/xslide" load-path))
(autoload 'xsl-mode "xslide" "Major mode for XSL stylesheets." t)
;; Turn on font lock when in XSL mode
(add-hook 'xsl-mode-hook
'turn-on-font-lock)
(setq auto-mode-alist
(append
(list
'("\\.fo" . xsl-mode)
'("\\.xsl" . xsl-mode))
auto-mode-alist))
;; Uncomment if using abbreviations
(abbrev-mode t)
(setq auto-mode-alist
(append '(("\\.xml$" . xml-mode)) auto-mode-alist))
(add-hook 'xml-mode-hook 'xslt-process-mode)
(setq load-path (cons "C:/emacs-20.7/psgml-1.2.2/" load-path))
; Not using xae, it seems to closely wedded to docbook to suit me
;(add-to-list 'load-path (expand-file-name
"C:/emacs-20.7/site-lisp/xae-1.0beta6/lisp"))
;(require 'xae)
;; load sgml-mode
(autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t )
;; in sgml documents, parse dtd immediately to allow immediate
;; syntax coloring
(setq sgml-auto-activate-dtd t)
;; set the default SGML declaration. docbook.dcl should work for most
(setq sgml-declaration
"c:/cygwin/usr/local/lib/sgml/dtd/docbook41/docbook.dcl")
;; here we set the syntax color information for psgml
(setq-default sgml-set-face t)
;;
;; Faces.
;;
(make-face 'sgml-comment-face)
(make-face 'sgml-doctype-face)
(make-face 'sgml-end-tag-face)
(make-face 'sgml-entity-face)
(make-face 'sgml-ignored-face)
(make-face 'sgml-ms-end-face)
(make-face 'sgml-ms-start-face)
(make-face 'sgml-pi-face)
(make-face 'sgml-sgml-face)
(make-face 'sgml-short-ref-face)
(make-face 'sgml-start-tag-face)
(set-face-foreground 'sgml-comment-face "black")
(set-face-foreground 'sgml-doctype-face "dark red")
(set-face-foreground 'sgml-end-tag-face "blue")
(set-face-foreground 'sgml-entity-face "magenta")
(set-face-foreground 'sgml-ignored-face "gray40")
(set-face-background 'sgml-ignored-face "gray60")
(set-face-foreground 'sgml-ms-end-face "green")
(set-face-foreground 'sgml-ms-start-face "yellow")
(set-face-foreground 'sgml-pi-face "dark blue")
(set-face-foreground 'sgml-sgml-face "brown")
(set-face-foreground 'sgml-short-ref-face "deep sky blue")
(set-face-foreground 'sgml-start-tag-face "dark green")
(setq-default sgml-markup-faces
'((comment . sgml-comment-face)
(doctype . sgml-doctype-face)
(end-tag . sgml-end-tag-face)
(entity . sgml-entity-face)
(ignored . sgml-ignored-face)
(ms-end . sgml-ms-end-face)
(ms-start . sgml-ms-start-face)
(pi . sgml-pi-face)
(sgml . sgml-sgml-face)
(short-ref . sgml-short-ref-face)
(start-tag . sgml-start-tag-face)))
;; load xml-mode
(setq auto-mode-alist
(append (list (cons "\\.xml\\'" 'xml-mode))
auto-mode-alist))
(autoload 'xml-mode "psgml" nil t)
(setq sgml-xml-declaration
"c:/cygwin/usr/local/lib/sgml/dtd/html/xml.dcl")
;; define html mode
(or (assoc "\\.html$" auto-mode-alist)
(setq auto-mode-alist (cons '("\\.html$" . sgml-html-mode)
auto-mode-alist)))
(or (assoc "\\.htm$" auto-mode-alist)
(setq auto-mode-alist (cons '("\\.htm$" . sgml-html-mode)
auto-mode-alist)))
(defun sgml-html-mode ()
"This version of html mode is just a wrapper around sgml mode."
(interactive)
(sgml-mode)
(make-local-variable 'sgml-declaration)
(make-local-variable 'sgml-default-doctype-name)
(setq
sgml-default-doctype-name "html"
sgml-declaration
"c:/cygwin/usr/local/lib/sgml/dtd/html/html.dcl"
sgml-always-quote-attributes t
sgml-indent-step 2
sgml-indent-data t
sgml-minimize-attributes nil
sgml-omittag t
sgml-shorttag t
)
)
(setq-default sgml-indent-data t)
(setq
sgml-always-quote-attributes t
sgml-auto-insert-required-elements t
sgml-auto-activate-dtd t
sgml-indent-data t
sgml-indent-step 2
sgml-minimize-attributes nil
sgml-omittag nil
sgml-shorttag nil
)
;; Start DTD mode for editing SGML-DTDs
(setq load-path (cons "c:/emacs-20.7/site-lisp/tdtd/" load-path))
(autoload 'dtd-mode "tdtd" "Major mode for SGML and XML DTDs.")
(autoload 'dtd-etags "tdtd"
"Execute etags on FILESPEC and match on DTD-specific regular
expressions."
t)
(autoload 'dtd-grep "tdtd" "Grep for PATTERN in files matching
FILESPEC." t)
;; Turn on font lock when in DTD mode
(add-hook 'dtd-mode-hooks
'turn-on-font-lock)
(setq auto-mode-alist
(append
(list
'("\\.dcl$" . dtd-mode)
'("\\.dec$" . dtd-mode)
'("\\.dtd$" . dtd-mode)
'("\\.ele$" . dtd-mode)
'("\\.ent$" . dtd-mode)
'("\\.mod$" . dtd-mode))
auto-mode-alist))
;; the regexp for NTEmacs etags
(setq dtd-etags-regex-option
"--regex=\'/<!\\(ELEMENT\\|ENTITY[ \\t]+%\\|NOTATION\\|ATTLIST\\)[
\\t]+\\([^ \\t]+\\)/\\2/\'")
;; we need the NTEmacs etags, not the cygwin etags
(setq dtd-etags-program "/cygdrive/c/emacs-20.7/bin/etags.exe")
=====end inserted .emacs file
JDEBUGReport