Hot code replace?

2004-08-17 Thread Greger Sernemar
Hi!
Is Hot code replace supported with JDE?
/Greger
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail



Hot code replace?

2004-08-17 Thread Paul Kinnucan
Greger Sernemar writes:
  Hi!
  
  Is Hot code replace supported with JDE?
  

Not yet.

Paul
  /Greger
  
  _
  Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
  http://join.msn.com/?page=features/featuredemail
  



Jde Xref problem

2004-08-17 Thread Ping Liang
When using the jde-xref feature, I have experienced a problem.

Syndrome: After jde-xref-make-xref-db, I moved the cursor to a method
in one of my classes ClassA and did a C-c C-v a, I got this in the
mini-buffer:

Wrong type argument: listp, com.x.x.ClassB

The ClassB is the super class of ClassA.

C-c C-v n works fine.

I took a look at the code in jde-xref.el.  I seems to me that the
offending section is in this area:

(defun jde-xref-next-caller ()
 If there are items still on the caller stack, pop the first one off
and show it
 (interactive)
 (if jde-xref-stack
 (if (listp (car jde-xref-stack))
 (jde-xref-goto-caller (pop jde-xref-stack))
(jde-xref-goto-caller (pop (pop jde-xref-stack ;; skip over called classname
   (message No more calls)))

So if jde-xref-stack is not a list, it still pop it anyway in the else block.

I don't understand the code good enough to fix it.  But I like the
feature very much and hope someone can take a look at it, or help me a
little me to understand this so that I can fix it.

Regards,

Ping


Re: Jde Xref problem

2004-08-17 Thread Raul Acevedo
I submitted a patch to fix this... I believe it is in the latest beta of JDE
(2.3.4beta5).

Raul

On Tue, 17 Aug 2004, Ping Liang wrote:

 When using the jde-xref feature, I have experienced a problem.

 Syndrome: After jde-xref-make-xref-db, I moved the cursor to a method
 in one of my classes ClassA and did a C-c C-v a, I got this in the
 mini-buffer:

 Wrong type argument: listp, com.x.x.ClassB

 The ClassB is the super class of ClassA.

 C-c C-v n works fine.

 I took a look at the code in jde-xref.el.  I seems to me that the
 offending section is in this area:

 (defun jde-xref-next-caller ()
  If there are items still on the caller stack, pop the first one off
 and show it
  (interactive)
  (if jde-xref-stack
  (if (listp (car jde-xref-stack))
  (jde-xref-goto-caller (pop jde-xref-stack))
 (jde-xref-goto-caller (pop (pop jde-xref-stack ;; skip over called classname
(message No more calls)))

 So if jde-xref-stack is not a list, it still pop it anyway in the else block.

 I don't understand the code good enough to fix it.  But I like the
 feature very much and hope someone can take a look at it, or help me a
 little me to understand this so that I can fix it.

 Regards,

 Ping



RE: Problem with jde-ant-build

2004-08-17 Thread Brian Rumple
Title: Problem with jde-ant-build



I made a change to the jde-ant.el file that I believe 
solves this problem. The diff is below:

Index: 
lisp/jde-ant.el===RCS 
file: /pack/anoncvs/jde/lisp/jde-ant.el,vretrieving revision 1.72diff 
-r1.72 jde-ant.el246c246 (setq buildfile 
jde-ant-buildfile))--- (setq buildfile 
(jde-normalize-path jde-ant-buildfile)))





From: John Cooper 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 
12:38 PMTo: '[EMAIL PROTECTED]'Subject: Problem with 
jde-ant-build

[I'm using jde 2.3.4beta5] 
jde-ant-build fails for me, with the following error: 
 cd h:/elisp/jde-2.3.4beta5/lisp/  ant -Dant.home=c:/javabld/ant -buildfile 'c:/javabld/build.xml' 
-emacs -Dbuild.compiler.emacs=true clean  
Buildfile: 'c:\javabld\build.xml' does not exist!  
Build failed 
 Compilation finished at Tue Aug 17 17:33:18 
I have jde-ant-invocation-method set to the default value 
("Script"). To get it working, I had to remove the use 
of `delimiter' in the following section of jde-build-ant-command: 
 (if (not (string= buildfile "")) 
 (setq ant-command 
 
(concat ant-command  
" -buildfile " delimiter  
(jde-normalize-path buildfile)  
delimiter))) 
I use cygwin zsh as my cmd line shell (Windows XP), and passing 
the single quotes to ant also cause the same error: 
 $ ant -Dant.home=c:/javabld/ant -buildfile 
\'c:/javabld/build.xml\' -emacs -Dbuild.compiler.emacs=true clean 
 Buildfile: 'c:\javabld\build.xml' does not exist! 
 Build failed 
I also have the following set in my .emacs:  explicit-sh-args nil  
shell-execute-helper "shelex.exe"  
shell-file-name "cmdproxy" 
Should delimer be removed from here, or are there some 
circumstances where it is required? 
 --- John 


JDEBug: Launch process with vm args and application args?

2004-08-17 Thread Matthew Weaver
In JDEBug, it seems that Launch Process does not apply 
jde-run-option-vm-args and jde-run-option-application-args.  Is there 
any way to launch a process with specific arguments to the application 
and to the vm?

I know that I can start the application separately with args, and then 
connect to it.  But this feels slow.  Is it my only option (on Linux)?  
Thanks.

-Matthew


RE: Problem with jde-ant-build

2004-08-17 Thread John Cooper
Title: Problem with jde-ant-build



Unfortunately the patch doesn't make any difference for me, 
because the setq is only done when bulidfile is null, andmy buildfile is 
set to "c:/javabld/build.xml". I think the problem is that buildfile is later 
being surrounded by quotes (the value of the delimiter 
variable).
 
--- John 


From: Brian Rumple [mailto:[EMAIL PROTECTED] 
Sent: 17 August 2004 18:37To: John Cooper; 
[EMAIL PROTECTED]Subject: RE: Problem with 
jde-ant-build

I made a change to the jde-ant.el file that I believe 
solves this problem. The diff is below:

Index: 
lisp/jde-ant.el===RCS 
file: /pack/anoncvs/jde/lisp/jde-ant.el,vretrieving revision 1.72diff 
-r1.72 jde-ant.el246c246 (setq buildfile 
jde-ant-buildfile))--- (setq buildfile 
(jde-normalize-path jde-ant-buildfile)))





From: John Cooper 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 
12:38 PMTo: '[EMAIL PROTECTED]'Subject: Problem with 
jde-ant-build

[I'm using jde 2.3.4beta5] 
jde-ant-build fails for me, with the following error: 
 cd h:/elisp/jde-2.3.4beta5/lisp/  ant -Dant.home=c:/javabld/ant -buildfile 'c:/javabld/build.xml' 
-emacs -Dbuild.compiler.emacs=true clean  
Buildfile: 'c:\javabld\build.xml' does not exist!  
Build failed 
 Compilation finished at Tue Aug 17 17:33:18 
I have jde-ant-invocation-method set to the default value 
("Script"). To get it working, I had to remove the use 
of `delimiter' in the following section of jde-build-ant-command: 
 (if (not (string= buildfile "")) 
 (setq ant-command 
 
(concat ant-command  
" -buildfile " delimiter  
(jde-normalize-path buildfile)  
delimiter))) 
I use cygwin zsh as my cmd line shell (Windows XP), and passing 
the single quotes to ant also cause the same error: 
 $ ant -Dant.home=c:/javabld/ant -buildfile 
\'c:/javabld/build.xml\' -emacs -Dbuild.compiler.emacs=true clean 
 Buildfile: 'c:\javabld\build.xml' does not exist! 
 Build failed 
I also have the following set in my .emacs:  explicit-sh-args nil  
shell-execute-helper "shelex.exe"  
shell-file-name "cmdproxy" 
Should delimer be removed from here, or are there some 
circumstances where it is required? 
 --- John 


Re: JDEBug: Launch process with vm args and application args?

2004-08-17 Thread Ed Mooney
Try setting
Jde Db Option Application Args
Jde Db Option Vm Args
in the Jde Db Options group (JDE/Project/Options/Debug).
  -- Ed
Matthew Weaver wrote:
In JDEBug, it seems that Launch Process does not apply 
jde-run-option-vm-args and jde-run-option-application-args.  Is there 
any way to launch a process with specific arguments to the application 
and to the vm?

I know that I can start the application separately with args, and then 
connect to it.  But this feels slow.  Is it my only option (on Linux)?  
Thanks.

-Matthew



RE: Problem with jde-ant-build

2004-08-17 Thread Brian Rumple
Title: Problem with jde-ant-build



I have had this problem a long time in the past and I 
wasn't sure the exact solution that I used. I don't think that it is a 
code issue, but probably a configuration one.

Do you have jde-cygwin-path-converter set? Mine 
is set like '(jde-cygwin-path-converter (quote 
(jde-cygwin-path-converter-internal)))

I also believe that set jde-ant-buildfile would be more 
appropriate than setting buildfile, but maybe you have a good reason for 
it.

-Brian



From: John Cooper 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 
1:56 PMTo: Brian Rumple; John Cooper; 
[EMAIL PROTECTED]Subject: RE: Problem with 
jde-ant-build

Unfortunately the patch doesn't make any difference for me, 
because the setq is only done when bulidfile is null, andmy buildfile is 
set to "c:/javabld/build.xml". I think the problem is that buildfile is later 
being surrounded by quotes (the value of the delimiter 
variable).
 
--- John 


From: Brian Rumple [mailto:[EMAIL PROTECTED] 
Sent: 17 August 2004 18:37To: John Cooper; 
[EMAIL PROTECTED]Subject: RE: Problem with 
jde-ant-build

I made a change to the jde-ant.el file that I believe 
solves this problem. The diff is below:

Index: 
lisp/jde-ant.el===RCS 
file: /pack/anoncvs/jde/lisp/jde-ant.el,vretrieving revision 1.72diff 
-r1.72 jde-ant.el246c246 (setq buildfile 
jde-ant-buildfile))--- (setq buildfile 
(jde-normalize-path jde-ant-buildfile)))





From: John Cooper 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 
12:38 PMTo: '[EMAIL PROTECTED]'Subject: Problem with 
jde-ant-build

[I'm using jde 2.3.4beta5] 
jde-ant-build fails for me, with the following error: 
 cd h:/elisp/jde-2.3.4beta5/lisp/  ant -Dant.home=c:/javabld/ant -buildfile 'c:/javabld/build.xml' 
-emacs -Dbuild.compiler.emacs=true clean  
Buildfile: 'c:\javabld\build.xml' does not exist!  
Build failed 
 Compilation finished at Tue Aug 17 17:33:18 
I have jde-ant-invocation-method set to the default value 
("Script"). To get it working, I had to remove the use 
of `delimiter' in the following section of jde-build-ant-command: 
 (if (not (string= buildfile "")) 
 (setq ant-command 
 
(concat ant-command  
" -buildfile " delimiter  
(jde-normalize-path buildfile)  
delimiter))) 
I use cygwin zsh as my cmd line shell (Windows XP), and passing 
the single quotes to ant also cause the same error: 
 $ ant -Dant.home=c:/javabld/ant -buildfile 
\'c:/javabld/build.xml\' -emacs -Dbuild.compiler.emacs=true clean 
 Buildfile: 'c:\javabld\build.xml' does not exist! 
 Build failed 
I also have the following set in my .emacs:  explicit-sh-args nil  
shell-execute-helper "shelex.exe"  
shell-file-name "cmdproxy" 
Should delimer be removed from here, or are there some 
circumstances where it is required? 
 --- John 


Re: problem: jde ant...

2004-08-17 Thread Gabe Johnson
Hello JDE list. I was having the same problem as somebody a while
back, where somebody was receiving the error:

  Compilation exited abnormally with code 129

... I don't know what happened, but I do know how to fix it. You have
to redirect stderr to stdout. So instead of M-x compile using the
command:

   ant -emacs compile

Use the command:

   ant -emacs compile 21

Apparently there has been a change recently somewhere in the pipeline
of applications that if it can't resolve where standard error goes, it
freaks out and returns 129.

I don't use JDE, so I can't say for sure that this will fix the
problem, but it did for me. Hopefully somebody will find this useful.

-gabe