Hi,
I'm trying to use the JDEbug on 2.1.6beta16, NTEmacs 20.4.1, Windows NT 4.
When I try to debug an application I get the following error:
*** Debugger Output for Process TOMExample(2) ***
Error: debugger unable to launch TOMExample.
Reason: VM initialization failed for: c:/jdk1.2.2/jre^Hinjavaw -Xdebug
-Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_shmem,address=javadebug,suspend=y -classpath
d:/out/Manatee/TOMExample;d:/out/utils;f:/bin/AdventNet/AdventNetSnmpv3_2.2/classes/AdventNetSnmpLLAPI.jar;f:/bin/xml/xml4j_2_0_9/xml4j.jar;c:/jdk1.2.2/jre/lib/rt.jar
-d vrb -lf out d:/projects/manatee/dtd/template.dtd
d:/projects/manatee/templates/TargetParams/1.0/TargetParams.tem TOMExample
-d vrb -lf out d:/projects/Manatee/dtd/template.dtd
d:/projects/Manatee/templates/TargetParams/1.0/TargetParams.tem
Error: cannot set breakpoint at line TOMExample.java in file 32.
Reason:
Error: unable to run TOMExample..
Reason: Application ID '2' does not exist.
Looks like there is some confusion between UNIX and DOS style slashes when
JDE tries to use the jde-bug-jre-home variable to generate the name of the
VM. I'm using bash, is there any assumption in the code that the user will
use a DOS shell to launch the VM?
I've attached my .emacs and my prj.el file.
Regards and thanks in advance,
Nascif
Lee Morgan wrote:
> Please enter the details of your bug report here
>
> One more time! Thanks for being patient. Also, may I suggest that the
> option
> to include the .emacs file in the help request feature look for the
> "_emacs"
> file if the ".emacs" file is not present. I didn't include my _emacs
> file
> earlier because submit bug report didn't find it.
>
> When I compile with jde I get the message "Wrong type argument: stringp,
> nil"
>
> Emacs : GNU Emacs 20.5.1 (i386-*-windows95.1111)
> of Mon Dec 6 1999 on buffy
> Package: JDE version 2.1.6beta16
>
> current state:
> ==============
> (setq
> jde-gen-session-bean-template '("(jde-wiz-insert-imports-into-buffer
> (list \"javax.ejb.*\"\n\"java.rmi.RemoteException\"))"
> "(jde-wiz-update-implements-clause \"SessionBean\")" "'> \"public void
> ejbActivate() throws RemoteException {\"'n> \"}\"'n\n'n" "'> \"public
> void ejbPassivate() throws RemoteException {\"'n> \"}\"'n\n'n" "'>
> \"public void ejbRemove() throws RemoteException {\"'n> \"}\"'n 'n" "'>
> \"public void setSessionContext(SessionContext ctx)
> throws\nRemoteException {\"" "'n> \"}\"'n 'n" "'> \"public void
> unsetSessionContext() throws RemoteException {\"'n>\n\"}\"'n 'n")
> jde-run-classic-mode-vm nil
> jde-gen-code-templates '(("Get Set Pair" . jde-gen-get-set)
> ("toString method" . jde-gen-to-string-method)
> ("Action Listener" . jde-gen-action-listener)
> ("Window Listener" . jde-gen-window-listener)
> ("Mouse Listener" . jde-gen-mouse-listener)
> ("Mouse Motion Listener" .
> jde-gen-mouse-motion-listener)
> ("Inner Class" . jde-gen-inner-class)
> ("println" . jde-gen-println)
> ("property change support" .
> jde-gen-property-change-support)
> ("EJB Entity Bean" . jde-gen-entity-bean)
> ("EJB Session Bean" . jde-gen-session-bean))
> jde-make-args ""
> jde-mode-abbreviations '(("ab" . "abstract") ("bo" . "boolean")
> ("br" . "break") ("by" . "byte") ("byv" . "byvalue")
> ("cas" . "cast") ("ca" . "catch") ("ch" . "char")
> ("cl" . "class") ("co" . "const") ("con" . "continue")
> ("de" . "default") ("dou" . "double") ("el" . "else")
> ("ex" . "extends") ("fa" . "false") ("fi" . "final")
> ("fin" . "finally") ("fl" . "float") ("fo" . "for")
> ("fu" . "future") ("ge" . "generic") ("go" . "goto")
> ("impl" . "implements") ("impo" . "import")
> ("ins" . "instanceof") ("in" . "int")
> ("inte" . "interface") ("lo" . "long")
> ("na" . "native") ("ne" . "new") ("nu" . "null")
> ("pa" . "package") ("pri" . "private")
> ("pro" . "protected") ("pu" . "public")
> ("re" . "return") ("sh" . "short") ("st" . "static")
> ("su" . "super") ("sw" . "switch")
> ("sy" . "synchronized") ("th" . "this")
> ("thr" . "throw") ("throw" . "throws")
> ("tra" . "transient") ("tr" . "true") ("vo" . "void")
> ("vol" . "volatile") ("wh" . "while"))
> jde-compile-option-verbose nil
> jde-db-option-heap-size '((1 . "megabytes") (16 . "megabytes"))
> jde-bug-breakpoint-marker-colors '("red" . "yellow")
> jde-gen-buffer-boilerplate nil
> jde-db-option-application-args nil
> jde-bug-vm-includes-jpda-p nil
> jde-gen-jfc-app-buffer-template '("(funcall
> jde-gen-boilerplate-function) 'n"
> "\"import java.awt.Dimension;\" 'n"
> "\"import java.awt.Graphics;\" 'n"
> "\"import java.awt.Graphics2D;\" 'n"
> "\"import java.awt.Color;\" 'n"
> "\"import java.awt.geom.Ellipse2D;\" 'n"
> "\"import java.awt.event.WindowAdapter;\" 'n"
> "\"import java.awt.event.WindowEvent;\" 'n"
> "\"import javax.swing.JFrame;\" 'n"
> "\"import javax.swing.JPanel;\" 'n"
> "\"import javax.swing.JScrollPane;\" 'n"
> "\"import javax.swing.JMenuBar;\" 'n"
> "\"import javax.swing.JMenu;\" 'n"
> "\"import java.awt.event.ActionEvent;\" 'n"
> "\"import javax.swing.AbstractAction;\" 'n 'n" "\"/**\" 'n" "\" *
> \"" "(file-name-nondirectory buffer-file-name) 'n" "\" *\" 'n" "\" *\"
> 'n" "\" * Created: \" (current-time-string) 'n" "\" *\" 'n" "\" *
> @author \" (user-full-name) 'n" "\" * @version\" 'n" "\" */\" 'n>" "'n>"
> "\"public class \"" "(file-name-sans-extension (file-name-nondirectory
> buffer-file-name))" "\" extends JFrame {\" 'n> 'n>" "\"class Canvas
> extends JPanel {\" 'n> 'n>" "\"public Canvas () {\" 'n>"
> "\"setSize(getPreferredSize());\" 'n>"
> "\"Canvas.this.setBackground(Color.white);\" 'n>" "\"}\" 'n> 'n>"
> "\"public Dimension getPreferredSize() {\" 'n>" "\"return new
> Dimension(600, 600);\" 'n>" "\"}\" 'n> 'n>" "\"public void
> paintComponent(Graphics g) {\" 'n>" "\"super.paintComponent(g);\" 'n>"
> "\"Graphics2D g2d = (Graphics2D) g;\" 'n>" "\"Ellipse2D circle = new
> Ellipse2D.Double(0d, 0d, 100d, 100d);\" 'n>"
> "\"g2d.setColor(Color.red);\" 'n>" "\"g2d.translate(10, 10);\" 'n>"
> "\"g2d.draw(circle);\" 'n>" "\"g2d.fill(circle);\" 'n>" "\"}\" 'n> 'n>"
> "\"}\" 'n> 'n>" "\"public \"" "(file-name-sans-extension
> (file-name-nondirectory buffer-file-name))" "\"() {\" 'n>"
> "\"super(\\\"\" (P \"Enter app title: \") \"\\\");\" 'n>"
> "\"setSize(300, 300);\" 'n>" "\"addWindowListener(new WindowAdapter()
> {\" 'n>" "\"public void windowClosing(WindowEvent e) {System.exit(0);}\"
> 'n>" "\"public void windowOpened(WindowEvent e) {}});\" 'n>"
> "\"setJMenuBar(createMenu());\" 'n>" "\"getContentPane().add(new
> JScrollPane(new Canvas()));\" 'n>" "\"}\" 'n>" "'n>" "\"public static
> void main(String[] args) {\" 'n>" "'n>" "(file-name-sans-extension
> (file-name-nondirectory buffer-file-name))" "\" f = new \""
> "(file-name-sans-extension (file-name-nondirectory buffer-file-name))"
> "\"();\" 'n>" "\"f.show();\" 'n>" "'p 'n>" "\"}\" 'n> 'n>" "\"protected
> JMenuBar createMenu() {\" 'n>" "\"JMenuBar mb = new JMenuBar();\" 'n>"
> "\"JMenu menu = new JMenu(\\\"File\\\");\" 'n>" "\"menu.add(new
> AbstractAction(\\\"Exit\\\") {\" 'n>" "\"public void
> actionPerformed(ActionEvent e) {\" 'n>" "\"System.exit(0);\" 'n>" "\"}\"
> 'n>" "\"});\" 'n>" "\"mb.add(menu);\" 'n>" "\"return mb;\" 'n>" "\"}\"
> 'n> 'n>" "\"} // \"" "(file-name-sans-extension (file-name-nondirectory
> buffer-file-name))" "'n>")
> jde-compile-option-nowarn nil
> jde-run-java-vm-w "javaw"
> jde-compile-option-encoding nil
> jde-run-option-java-profile '(nil . "./java.prof")
> jde-bug-jpda-directory ""
> jde-read-compile-args nil
> jde-run-java-vm "java"
> jde-db-option-verbose '(nil nil nil)
> jde-db-read-app-args nil
> jde-run-option-heap-profile '(nil "./java.hprof" 5 20 "Allocation
> objects")
> jde-gen-println '("'&" "\"System.out.println(\" (P \"Print out: \")
> \");\" 'n>")
> jde-enable-abbrev-mode nil
> jde-global-classpath nil
> jde-gen-window-listener-template '("'& (P \"Window name: \")"
> "\".addWindowListener(new WindowAdapter() {\" 'n>" "\"public
> void windowActivated(WindowEvent e) {}\" 'n>" "\"public void
> windowClosed(WindowEvent e) {}\" 'n>" "\"public void
> windowClosing(WindowEvent e) {System.exit(0);}\" 'n>" "\"public void
> windowDeactivated(WindowEvent e) {}\" 'n>" "\"public void
> windowDeiconified(WindowEvent e) {}\" 'n>" "\"public void
> windowIconified(WindowEvent e) {}\" 'n>" "\"public void
> windowOpened(WindowEvent e) {}});\" 'n>")
> jde-run-working-directory ""
> jde-gen-property-change-support '("'&"
> "\"protected PropertyChangeSupport pcs = new
> PropertyChangeSupport(this);\" 'n>" "\"/**\" 'n>\"* Adds a
> PropertyChangeListener to the listener list.\" 'n>" "\"* The listener is
> registered for all properties.\" 'n>" "\"*\" 'n> \"* @param listener The
> PropertyChangeListener to be added\" 'n> \"*/\" 'n>" "\"public void
> addPropertyChangeListener(PropertyChangeListener listener) {\" 'n>"
> "\"pcs.addPropertyChangeListener(listener);\" 'n> \"}\" 'n> 'n>"
> "\"/**\" 'n>\"* Removes a PropertyChangeListener from the listener
> list.\" 'n>" "\"* This removes a PropertyChangeListener that was
> registered for all properties.\" 'n>" "\"*\" 'n> \"* @param listener The
> PropertyChangeListener to be removed\" 'n> \"*/\" 'n>" "\"public void
> removePropertyChangeListener(PropertyChangeListener listener) {\" 'n>"
> "\"pcs.removePropertyChangeListener(listener);\" 'n> \"}\" 'n> 'n>"
> "\"/**\" 'n>\"* Adds a PropertyChangeListener for a specific property.\"
> 'n>" "\"* The listener will be invoked only when a call on
> firePropertyChange\" 'n>" "\"* names that specific property.\" 'n>"
> "\"*\" 'n> \"* @param propertyName The name of the property to listen
> on\" 'n>" "\"* @param listener The PropertyChangeListener to be added\"
> 'n> \"*/\" 'n>" "\"public void addPropertyChangeListener(String
> propertyName,\" 'n>" "\"PropertyChangeListener listener) {\" 'n>"
> "\"pcs.addPropertyChangeListener(propertyName, listener);\" 'n> \"}\"
> 'n> 'n>" "\"/**\" 'n>\"* Removes a PropertyChangeListener for a specific
> property.\" 'n>" "\"*\" 'n> \"* @param propertyName The name of the
> property that was listened on\" 'n>" "\"* @param listener The
> PropertyChangeListener to be removed\" 'n> \"*/\" 'n>" "\"public void
> removePropertyChangeListener(String propertyName,\" 'n>"
> "\"PropertyChangeListener listener) {\" 'n>"
> "\"pcs.removePropertyChangeListener(propertyName, listener);\" 'n> \"}\"
> 'n> 'n>" "\"/**\" 'n>\"* Reports a bound property update to any
> registered listeners. \" 'n>" "\"* No event is fired if old and new are
> equal and non-null.\" 'n>" "\"*\" 'n> \"* @param propertyName The
> programmatic name of the property that was changed\" 'n>" "\"* @param
> oldValue The old value of the property\" 'n>" "\"* @param newValue The
> new value of the property.\" 'n> \"*/\" 'n>" "\"public void
> firePropertyChange(String propertyName, Object oldValue, Object
> newValue) {\" 'n>" "\"pcs.firePropertyChange(propertyName, oldValue,
> newValue);\" 'n> \"}\" 'n> 'n>" "\"/**\" 'n>\"* Reports a bound property
> update to any registered listeners. \" 'n>" "\"* No event is fired if
> old and new are equal and non-null.\" 'n>" "\"* This is merely a
> convenience wrapper around the more general\" 'n>" "\"*
> firePropertyChange method that takes Object values.\" 'n>" "\"* No event
> is fired if old and new are equal and non-null.\" 'n>" "\"*\" 'n> \"*
> @param propertyName The programmatic name of the property that was
> changed\" 'n>" "\"* @param oldValue The old value of the property\" 'n>"
> "\"* @param newValue The new value of the property.\" 'n> \"*/\" 'n>"
> "\"public void firePropertyChange(String propertyName, int oldValue, int
> newValue) {\" 'n>" "\"pcs.firePropertyChange(propertyName, oldValue,
> newValue);\" 'n> \"}\" 'n> 'n>" "\"/**\" 'n>\"* Reports a bound property
> update to any registered listeners. \" 'n>" "\"* No event is fired if
> old and new are equal and non-null.\" 'n>" "\"* This is merely a
> convenience wrapper around the more general\" 'n>" "\"*
> firePropertyChange method that takes Object values.\" 'n>" "\"* No event
> is fired if old and new are equal and non-null.\" 'n>" "\"*\" 'n> \"*
> @param propertyName The programmatic name of the property that was
> changed\" 'n>" "\"* @param oldValue The old value of the property\" 'n>"
> "\"* @param newValue The new value of the property.\" 'n> \"*/\" 'n>"
> "\"public void firePropertyChange(String propertyName, boolean oldValue,
> boolean newValue) {\" 'n>" "\"pcs.firePropertyChange(propertyName,
> oldValue, newValue);\" 'n> \"}\" 'n> 'n>" "\"/**\" 'n>\"* Fires an
> existing PropertyChangeEvent to any registered listeners.\" 'n>" "\"* No
> event is fired if the given event's old and new values are equal and
> non-null. \" 'n>" "\"*\" 'n> \"* @param evt The PropertyChangeEvent
> object.\" 'n>\"*/\" 'n>" "\"public void
> firePropertyChange(PropertyChangeEvent evt) {\" 'n>"
> "\"pcs.firePropertyChange(evt);\" 'n> \"}\" 'n> 'n>" "\"/**\" 'n>\"*
> Checks if there are any listeners for a specific property.\" 'n>" "\"*\"
> 'n> \"* @param evt The PropertyChangeEvent object.\" 'n>" "\"* @return
> <code>true</code>if there are one or more listeners for the given
> property\" 'n>" "\"*/\" 'n>" "\"public boolean hasListeners(String
> propertyName) {\" 'n>" "\"return pcs.hasListeners(propertyName);\" 'n>
> \"}\" 'n> 'n>")
> jde-db-marker-regexp "^Breakpoint hit: .*(\\([^$]*\\).*:\\([0-9]*\\))"
> jde-gen-mouse-motion-listener-template '("'& (P \"Component name: \")"
> "\".addMouseMotionListener(new MouseMotionAdapter() {\" 'n>"
> "\"public void mouseDragged(MouseEvent e) {}\" 'n>" "\"public void
> mouseMoved(MouseEvent e) {}});\" 'n>")
> jde-key-bindings '(("" . jde-compile) ("" . jde-run)
> ("" . jde-debug) ("" . jde-build)
> ("" . jde-run-menu-run-applet)
> ("" . jde-db-menu-debug-applet) ("\n" . bsh)
> ("" . speedbar-frame-mode)
> ("" . jde-wiz-implement-interface)
> ("
.emacs
prj.el