help me get off
Hi all, Sorry for the administrivia, but I'm trying and trying unsucessfully to get off the list. We have moved to Denmark and I'm trying to find a job which is extremely difficult for an American programmør in Denmark. Each time a message comes into my inbox, my stomach jumps a mile high because I think it might be an employer. So I'm signing off all my mailing lists to minimize neurosis. Anyway, my numerous attempts to unsubscribe via [EMAIL PROTECTED] result in this: Acknowledgment: The address [EMAIL PROTECTED] was not on the jde-announce mailing list when I received your request and is not a subscriber of this list. They don't recognize [EMAIL PROTECTED] either. Could someone help me to get off this list for once and for all? Tak på forhand! Heather M. Buch
jdebug remote process and virtual host using different port
Hi, I am successfully running the following: Red Hat 7.1, Linux version 2.4.3-12 java 1.3.1 apache 1.3.20 apache: http://www.apache.org/ jakarta-tomcat 3.3-b1 tomcat: http://jakarta.apache.org emacs 21.1 eieio-0.17beta3.tar.gz elib.tar.gz jde-beta.tar.gz (JDE 2.2.9beta9) speedbar-0.14beta2.tar.gz semantic-1.4beta13.tar.gz I use jdebug to debug a remote Tomcat process. When I want to debug, I start tomcat up in debug mode, using these options: TOMCAT_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=,server=y,suspend=n export TOMCAT_OPTS This has worked just fine in the past. I can access my servlets, set breakpoints, debug etc. Now, however, I have a virtual host set up in Apache, which also serves my Tomcat stuff via mod_jk. My virtual host is set up to use this url: http://marlowe.mit.edu:9998 So, Apache is listening on port 9998, while Tomcat (or jdebug?) is listening on port . Actually, I'm not quite sure what is listening on , I just know that I use it to start Tomcat when I want to debug. I'm not too experienced with port numbers, and I'm not sure if the two port numbers are even causing the problem. But could they have something to do with the fact that now, when I start Tomcat in debug mode and attempt to debug, a browser request for a servlet returns a netscape error dialog saying the document contained no data. I do not get this error dialog when I start Tomcat up normally (without this stuff: TOMCAT_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=,server=y,suspend=n export TOMCAT_OPTS Thanks, Heather M. Buch
updating project file
Hi, I wrote a lot of project specific information directly to my .emacs file. Is there a way to quickly extract project-specific stuff from .emacs and put it in the project file? Or do I have to go and hand-edit both files? Thanks Heather M. Buch Java Analyst Programmer II Information Systems [EMAIL PROTECTED] (617) 253-9801 N42-240K Support open-source software. Oppose the SSSCA! http://judiciary.senate.gov/special/input_form.cfm
problem with auto-completion
Hello, I don't seem to have much luck getting jde to auto-complete code within my package (though it will auto-complete methods from the current class, this) The beginning of my package name is edu, and it sits in /var/local/https-10/https/tomcat/lib/apps/classes As an example, I have a class called DatePatterns It is in the following directory (which may not be what Tomcat wants, but it's worked ok so far): /var/local/https-10/https/tomcat/lib/apps/classes/edu/mit/emcc/util/DatePatternsclass The path to my package is configured in my jde-global-classpath as follows: /var/local/https-10/https/tomcat/lib/apps (I have also set it as /var/local/https-10/https/tomcat/lib/apps/classes in jde-global-classpath, but no luck) Whenever I try to autocomplete on DatePatterns (or any other in my package, except the one I am currently in), I get this sort of error: Error: // Error: // Uncaught Exception: TargetError : at Line: 295 : in file: unknown file : jde util Completion getClassInfo ( edumitemccutilDatePatterns , 0 ) Target exception: javalangNullPointerException [2 times] progn: Beanshell eval error See messages buffer for details No completion at this point if: Quit Auto-savingdone Press Return to bury the buffer list Any help would be great Thanks, -- Heather
Re: problem with auto-completion
Javier S Lopez wrote: Set it to this path and restart the beanshell Check that the beanshell classpath includes that directory /var//classes Hi Javier, I changed my classpath entry and restarted the beanshell (I don't know how to check the beanshell classpath) I now get this: Debugger entered--Lisp error: (error Beanshell eval error See messages buffer for details) signal(error (Beanshell eval error See messages buffer for details)) error(Beanshell eval error See messages buffer for details) (progn (message Beanshell expression evaluation error\n Expression: %s\n Error: %s expr bsh-tq-reply) (error Beanshell eval error See messages buffer for details)) (if (string-match // Error: bsh-tq-reply) (progn (message Beanshell expression evaluation error\n Expression: %s\n Error: %s expr bsh-tq-reply) (error Beanshell eval error See messages buffer for details))) (progn (setq bsh-tq-reply nil) (set-process-filter bsh-process (quote bsh-eval-filter)) (process-send-string bsh-process (concat expr \n)) (if (not ) (error No reply from BeanShell)) (set-process-filter bsh-process comint-filter) (if (string-match // Error: bsh-tq-reply) (progn )) (if eval-return (if bsh-tq-reply ) bsh-tq-reply)) (if bsh-process (progn (setq bsh-tq-reply nil) (set-process-filter bsh-process ) (process-send-string bsh-process ) (if ) (set-process-filter bsh-process comint-filter) (if ) (if eval-return bsh-tq-reply))) (when bsh-process (setq bsh-tq-reply nil) (set-process-filter bsh-process (quote bsh-eval-filter)) (process-send-string bsh-process (concat expr \n)) (if (not ) (error No reply from BeanShell)) (set-process-filter bsh-process comint-filter) (if (string-match // Error: bsh-tq-reply) (progn )) (if eval-return (if bsh-tq-reply ) bsh-tq-reply)) (let* ((bsh-process ) (comint-filter )) (when bsh-process (setq bsh-tq-reply nil) (set-process-filter bsh-process ) (process-send-string bsh-process ) (if ) (set-process-filter bsh-process comint-filter) (if ) (if eval-return bsh-tq-reply))) bsh-eval(jdeutilCompletiongetClassInfo(\edumitemccutilDatePatterns\,0); t) bsh-eval-r(jdeutilCompletiongetClassInfo(\edumitemccutilDatePatterns\,0);) jde-complete-invoke-getClassInfo(edumitemccutilDatePatterns 0) (setq public-methods (jde-complete-invoke-getClassInfo name jde-complete-public)) (progn (setq public-methods (jde-complete-invoke-getClassInfo name jde-complete-public)) (setq protected-methods (jde-complete-invoke-getClassInfo name jde-complete-protected)) (setq package-methods (jde-complete-invoke-getClassInfo name jde-complete-package)) (setq private-methods (jde-complete-invoke-getClassInfo name jde-complete-private)) (setq class-info (append public-methods protected-methods package-methods private-methods)) (if class-info (jde-complete-add-to-classinfo-cache name class-info))) (if (not class-info) (progn (setq public-methods ) (setq protected-methods ) (setq package-methods ) (setq private-methods ) (setq class-info ) (if class-info ))) (when (not class-info) (setq public-methods (jde-complete-invoke-getClassInfo name jde-complete-public)) (setq protected-methods (jde-complete-invoke-getClassInfo name jde-complete-protected)) (setq package-methods (jde-complete-invoke-getClassInfo name jde-complete-package)) (setq private-methods (jde-complete-invoke-getClassInfo name jde-complete-private)) (setq class-info (append public-methods protected-methods package-methods private-methods)) (if class-info (jde-complete-add-to-classinfo-cache name class-info))) (let ((class-info ) public-methods protected-methods private-methods package-methods) (when (not class-info) (setq public-methods ) (setq protected-methods ) (setq package-methods ) (setq private-methods ) (setq class-info ) (if class-info )) (setq class-info (jde-complete-get-accessible-info class-info access-level name)) (setq class-info (jde-complete-build-completion-list class-info)) (setq class-info (jde-complete-remove-duplicates class-info)) (setq class-info (sort class-info )) class-info) jde-complete-get-classinfo(edumitemccutilDatePatterns) (let ((classinfo )) (if classinfo (if ))) (cond ((member type jde-complete-primitive-types) (error Cannot complete primitive type: %s type)) ((string= type void) (error Cannot complete return type of %s is void )) (access-level (let )) (t (let ))) (if type (cond ( ) ( ) (access-level ) (t )) nil) (let ((type )) (if type (cond) nil)) jde-complete-find-completion-for-pair((_dp )) (setq completion-list (jde-complete-find-completion-for-pair pair)) (if access (setq completion-list (jde-complete-find-completion-for-pair pair nil access)) (setq completion-list (jde-complete-find-completion-for-pair pair))) (progn (if (string= ) (progn )) (if (string= this) (setq access jde-complete-private) (if )) (if access (setq completion-list ) (setq completion-list )) (if (null completion-list) (setq completion-list )) (if (null completion-list) (setq completion-list )) (if
Re: problem with auto-completion
Hi, By looking at the beanshell, I was able to determine that my classpath entry needed a trailing / which I did not have. Thanks very much for your help, Javier!! Heather Javier S. Lopez wrote: Heather Buch [EMAIL PROTECTED] writes: Javier S. Lopez wrote: Set it to this path and restart the beanshell. Check that the beanshell classpath includes that directory /var/.../classes Hi Javier, I changed my classpath entry and restarted the beanshell (I don't know how to check the beanshell classpath). I now get this: Look at the *bsh* buffer. At the top you will see something like: - cd c:/cygwin/home/jslopez/code/dev/src/com/forumsys/server/process/ c:/j2sdk1.4.0/bin/javaw.exe -classpath [...] bsh.Interpreter BeanShell 1.1a16 - by Pat Niemeyer ([EMAIL PROTECTED]) bsh % --- The classpath is after the -classpath flag. Debugger entered--Lisp error: (error Beanshell eval error. See messages buffer for details.) [...] And here is what I am running: emacs 21.1 eieio-0.17beta3.tar.gz elib.tar.gz jde-beta.tar.gz speedbar-0.14beta2.tar.gz semantic-1.4beta13.tar.gz ecb 1.70 Thanks, Heather If you see this again, restart your emacs. Javier -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-5406 40 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481 -- Heather M. Buch Java Analyst Programmer II Information Systems [EMAIL PROTECTED] (617) 253-9801 N42-240K
local variables gone from jdebug
Hello, Suddenly, during a JDebug session (attached to a local tomcat process), the local variables do not show, when I choose the jdebug - show buffer - locals option. I can see this, but none of the variables that were defined in my block of code, or just in my method. I have been able to see these in the past. Any ideas? Thanks! Heather
Re: local variables gone from jdebug
It works fine. I needed to compile with -g Heather Heather Buch wrote: Hello, Suddenly, during a JDebug session (attached to a local tomcat process), the local variables do not show, when I choose the jdebug - show buffer - locals option. I can see this, but none of the variables that were defined in my block of code, or just in my method. I have been able to see these in the past. Any ideas? Thanks! Heather -- Heather M. Buch Java Analyst Programmer II Information Systems [EMAIL PROTECTED] (617) 253-9801 N42-240K
desktop problems
Hi, I'm trying to use desktop.el. It is in my share/emacs/21.1/lisp dir. I can't M-x to any of it's functions without editing my .emacs file to load it first, right? So I edit my .emacs. When I add these lines at the bottom of my .emacs file, (desktop-load-default) (desktop-read) And do C-x C-e, I get this: Debugger entered--Lisp error: (error too many arguments) (defvar desktop-buffer-handlers (\` (desktop-buffer-dired desktop-buffer-rmail desktop-buffer-info desktop-buffer-file)) *List of functions to call in order to create a buffer. The functions \nare called without parameters but may access the the major mode as mam , \nthe file name as fn , the buffer name as bn , the default directory as \n dd . If some function returns non-nil no further functions are called. \nIf the function returns t then the buffer is considered created.) eval-buffer(#buffer *load*3 nil desktop nil t) load-with-code-conversion(/var/local/jdee2.9/share/emacs/site-lisp/desktop.el desktop nil nil) (desktop-read) eval((desktop-read)) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp) recursive-edit() byte-code(Æ!^Ç ^È !^\nf?Éed\Vf4eb^Ê¥y^`db^Ê¥Zy^\f`|^)Ëc^eb^ÌÍ !^Î ^ @Ï=fKÐÑÒ\^Ó ^ÌÔ!^ÒÕÒÌÔ!^SÖ ^,Õ? [debugger-buffer debugger-args noninteractive debugger-batch-max-lines middlestart buffer-read-only pop-to-buffer debugger-mode debugger-setup-buffer count-lines 2 ...\n message buffer-string kill-emacs debug backtrace-debug 3 t debugger-reenable nil recursive-edit standard-output inhibit-trace] 3) debug(error (error too many arguments)) (defvar desktop-buffer-handlers (\` (desktop-buffer-dired desktop-buffer-rmail desktop-buffer-info desktop-buffer-file)) *List of functions to call in order to create a buffer. The functions \nare called without parameters but may access the the major mode as mam , \nthe file name as fn , the buffer name as bn , the default directory as \n dd . If some function returns non-nil no further functions are called. \nIf the function returns t then the buffer is considered created.) eval-buffer(#buffer *load*2 nil desktop nil t) load-with-code-conversion(/var/local/jdee2.9/share/emacs/site-lisp/desktop.el desktop nil nil) (desktop-read) eval((desktop-read)) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp) recursive-edit() byte-code(Æ!^Ç ^È !^\nf?Éed\Vf4eb^Ê¥y^`db^Ê¥Zy^\f`|^)Ëc^eb^ÌÍ !^Î ^ @Ï=fKÐÑÒ\^Ó ^ÌÔ!^ÒÕÒÌÔ!^SÖ ^,Õ? [debugger-buffer debugger-args noninteractive debugger-batch-max-lines middlestart buffer-read-only pop-to-buffer debugger-mode debugger-setup-buffer count-lines 2 ...\n message buffer-string kill-emacs debug backtrace-debug 3 t debugger-reenable nil recursive-edit standard-output inhibit-trace] 3) debug(error (error too many arguments)) (defvar desktop-buffer-handlers (\` (desktop-buffer-dired desktop-buffer-rmail desktop-buffer-info desktop-buffer-file)) *List of functions to call in order to create a buffer. The functions \nare called without parameters but may access the the major mode as mam , \nthe file name as fn , the buffer name as bn , the default directory as \n dd . If some function returns non-nil no further functions are called. \nIf the function returns t then the buffer is considered created.) eval-buffer(#buffer *load* nil desktop nil t) load-with-code-conversion(/var/local/jdee2.9/share/emacs/site-lisp/desktop.el desktop nil t) require(desktop) eval((require (quote desktop))) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp) When I add (require 'desktop) at the bottom of .emacs, I get this: Debugger entered--Lisp error: (error too many arguments) (defvar desktop-buffer-handlers (\` (desktop-buffer-dired desktop-buffer-rmail desktop-buffer-info desktop-buffer-file)) *List of functions to call in order to create a buffer. The functions \nare called without parameters but may access the the major mode as mam , \nthe file name as fn , the buffer name as bn , the default directory as \n dd . If some function returns non-nil no further functions are called. \nIf the function returns t then the buffer is considered created.) eval-buffer(#buffer *load*5 nil desktop nil t) load-with-code-conversion(/var/local/jdee2.9/share/emacs/site-lisp/desktop.el desktop nil t) require(desktop) eval((require (quote desktop))) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp) recursive-edit() byte-code(Æ!^Ç ^È !^\nf?Éed\Vf4eb^Ê¥y^`db^Ê¥Zy^\f`|^)Ëc^eb^ÌÍ !^Î ^ @Ï=fKÐÑÒ\^Ó ^ÌÔ!^ÒÕÒÌÔ!^SÖ ^,Õ? [debugger-buffer debugger-args noninteractive debugger-batch-max-lines middlestart buffer-read-only pop-to-buffer debugger-mode debugger-setup-buffer count-lines 2 ...\n message buffer-string kill-emacs debug backtrace-debug 3 t debugger-reenable nil recursive-edit
never mind last question
Sorry about that. Please disregard my last message. I found my mistake. Heather
run to next breakpoint
Hi, I'm debugging by attaching to a remote process (my servlet app in Tomcat. I can't seem to find a command to just jump to the next breakpoint. Is there such a command? Continue seems to run the application to completion. Thanks, -- Heather M. Buch Java Analyst Programmer II Information Systems [EMAIL PROTECTED] (617) 253-9801 N42-240K
[Fwd: run to next breakpoint]
Heather Buch wrote: OK, I'm sure you're right. It occurs to me that the next breakpoint may not be hit in my debug session. Thanks, I was being stupid. Continue works fine. The next breakpoint was not hit in my debug session. Thanks, Heather Heather Laurent Mirguet wrote: As far as I can see. Continue will stop at next breakpoint. Laurent Mirguet Heather Buch wrote: Hi, I'm debugging by attaching to a remote process (my servlet app in Tomcat. I can't seem to find a command to just jump to the next breakpoint. Is there such a command? Continue seems to run the application to completion. Thanks, -- Heather M. Buch Java Analyst Programmer II Information Systems [EMAIL PROTECTED] (617) 253-9801 N42-240K -- Heather M. Buch Java Analyst Programmer II Information Systems [EMAIL PROTECTED] (617) 253-9801 N42-240K
Re: JDEbug performance
Max Rydahl Andersen wrote: What if they phased it out altogether in the next sdk? The Java 2 Classic VM The Java 2 Classic VM is essentially the same virtual machine implementation as in version 1.2 of the Java 2 SDK. It may be invoked by using the -classic command-line option, as in this example: java -classic MyApp The Java 2 Classic VM is included only in the Java 2 SDK. It is not included in the Java 2 Runtime Environment. The -classic option will not work with the Java 2 Runtime Environment. Heather
how to set classpath
Hello, A few questions on setting the classpath in jde: 1) Do I need to set the path to the jdk libraries themselves? (I guess this would be something like /var/local/https-1.0/java/jdk1.3.1_01/lib, or /var/local/https-1.0/java/jdk1.3.1_01/jre/lib) in order to get auto-completion on stuff like java.io or java.util? Or is there another variable I need to set to tell jde where the jdk (and therefore it's libraries) is? 2) I have done the following to construct a classpath for my project: set a project-specific global classpath and saved it for this session only saved my project file to write my project-specific classpath permanently for my project set a default global classpath and saved it for future sessions When I open my project, is my classpath only the one that I saved to my project file, or does it include the default global classpath that I saved for future sessions, as well? I would like to have the latter, a default global classpath for all projects, and project specific global classpaths that get appended to the dafault global classpath. 3) Though I have set my classpaths as instructed in the manual, like this: Jde Global Classpath: [Hide] [INS] [DEL] Path: /var/local/https-1.0/java1.3/lib/ [INS] [DEL] Path: /var/local/https-1.0/java1.3/jre/lib I don't get any response when I attempt to use auto-complete on something like java.io. Is there something different that I need to do to get auto-complete on the core java classes? I have a feeling there is. Thanks! Heather
appending a project global classpath to a default global classpath
I think the users guide answered my question about this: When you open a Java source file, the JDE looks for project files in the directory tree containing the source file. If the JDE finds one or more project files, it loads the project files in the following manner. The JDE first sets all the JDE variables to their Emacs startup values (i.e., the default value or the value saved in your .emacs file). It then loads all the project files in the directory tree containing the current source buffer, starting with the topmost file. What this means is that you can use project files to extend and/or override the settings in your .emacs file and in other project files. For example, your .emacs file can specify settings that are common to all your projects. You can put settings common to a group of projects at the top of the directory tree containing the projects, settings common to each project at the top of the directory containing each projects, and so on. Does this mean that a project global classpath extends a default global classpath? - Heather M. Buch Java Analyst Programmer II Information Systems [EMAIL PROTECTED] (617) 253-9801 N42-240K
Re: how to set classpath
Hi. Thanks. Can I just do this again: gzip -cd jde-latest.tar.gz | tar xvf - or do I need to reinstall all other libraries (elib, eieio, etc)? Thanks, Heather Paul Kinnucan wrote: Heather Buch writes: Hello, A few questions on setting the classpath in jde: 1) Do I need to set the path to the jdk libraries themselves? (I guess this would be something like /var/local/https-1.0/java/jdk1.3.1_01/lib, or /var/local/https-1.0/java/jdk1.3.1_01/jre/lib) in order to get auto-completion on stuff like java.io or java.util? Or is there another variable I need to set to tell jde where the jdk (and therefore it's libraries) is? Heather, You should not need to include the JDK rt.jar file explicitly in jde-global-classpath to get completion on the standard JDK classes, at least I don't need to do this in the latest beta of the JDE. BTW, I recommend that you upgrade to the latest beta version of the JDE. It is stable and easier for me to support because I cannot remember the limitations of JDE 2.2.8. I need to release 2.2.9 because it is now light years beyond JDE 2.2.8 in capabilities and features. 2) I have done the following to construct a classpath for my project: set a project-specific global classpath and saved it for this session only saved my project file to write my project-specific classpath permanently for my project set a default global classpath and saved it for future sessions When I open my project, is my classpath only the one that I saved to my project file, or does it include the default global classpath that I saved for future sessions, as well? The settings in the project file override the settings in your .emacs file. I would like to have the latter, a default global classpath for all projects, and project specific global classpaths that get appended to the dafault global classpath. This is not easy. It requires some Lisp programming. 3) Though I have set my classpaths as instructed in the manual, like this: Jde Global Classpath: [Hide] [INS] [DEL] Path: /var/local/https-1.0/java1.3/lib/ [INS] [DEL] Path: /var/local/https-1.0/java1.3/jre/lib I don't get any response when I attempt to use auto-complete on something like java.io. Is there something different that I need to do to get auto-complete on the core java classes? I have a feeling there is. I don't need to do this in JDE 2.2.9 beta8. It may be necessary to include rt.jar in jde-global-classpath if you ar using JDE 2.2.8. - Paul -- Heather M. Buch Java Analyst Programmer II Information Systems [EMAIL PROTECTED] (617) 253-9801 N42-240K