Can not parse the thing at point

2003-07-18 Thread Murali
I always get Can not parse the thing at point!
whenever I try jde-open-class-at-point (C-c C-v C-g or C-c C-v C-y)

I tried it on a class name.

Here is what I have in my .emacs file
(add-to-list 'load-path (expand-file-name /u1/local/share/emacs/tars/jde-2.3.2/lisp))
(add-to-list 'load-path (expand-file-name /u1/local/share/emacs/tars/elib-1.0))
(add-to-list 'load-path /u1/local/share/emacs/tars/eieio-0.17)
(add-to-list 'load-path /u1/local/share/emacs/tars/speedbar-0.14beta4)
(add-to-list 'load-path /u1/local/share/emacs/tars/semantic-1.4.4)
(add-to-list 'load-path /u1/local/share/emacs/tars/ecb-1.95)

I did set jde-sourcepath
'(jde-sourcepath (quote (/export/home/murali/proj/java/src 
/export/home/murali/proj/java/src/common)))

The emacs version I tried are
20.7.1 on Solaris 2.7
and 21.2.1 on Windows 2000.

Anybody else have this problem? Is it my configuration? Any workarounds/resolutions?

thanks
- Murali.


Re: Executing an ANT process from Java.

2003-07-18 Thread Lauren Commons
I'm not the person on this list who can help you, but
I understand that the Ant source code has comments
explaining exactly how to do this.  I believe the
comments are associated with the main() method.

--- Joseph Campbell [EMAIL PROTECTED] wrote:
 Someone on the ANT users list pointed me in the
 directino of this project for 
 a source of someone who has embedded ANT into their
 project.  I have need to 
 execute an ANT process from java and am looking for
 someone who has done it.
 
 Can you provide any assistance on this topic?
   Thanks,
   Joe Campbell
 
 -- 
 I wonder if there is anyone in the world who works
 harder 
 at anything than American school kids work at
 popularity. 
 Navy SEALs and neurosurgery residents seem slackers
 by 
 comparison.
  - Paul Graham

-
 Joseph Campbell  | EMAIL: [EMAIL PROTECTED]
 Staff Consultant | URL:   www.inventa.com
 Inventa Technologies | PH:(856)914-5200
  | PGER:  (888)454-0876

-
 


=
-
Mr Lauren Commons
DISCLAIMER: The opinions expressed 
ARE in fact those of my employer.

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


error when trying to connect to an external application via the Socket - attach option when using jdb in jdee

2003-07-18 Thread Philip Varghese
Hi 

 

Could anyone throw some light on why I get this error when trying to
trying to connect to an external application via the Socket - attach
option when using jdb in jdee.

 

c:/Main/build-tools/j2sdk1.4.1_01/bin/jdb.exe -attach localhost:3999

 

java.io.IOException: shmemBase_attach failed, error code = -1

at com.sun.tools.jdi.SharedMemoryTransport.attach0(Native
Method)

at
com.sun.tools.jdi.SharedMemoryTransport.attach(SharedMemoryTransport.jav
a:43)

at
com.sun.tools.jdi.SharedMemoryAttachingConnector.attach(SharedMemoryAtta
chingConnector.java:43)

at
com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnection.j
ava:346)

at
com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:168)

at com.sun.tools.example.debug.tty.Env.init(Env.java:63)

at com.sun.tools.example.debug.tty.TTY.main(TTY.java:829)

 

Fatal error:

Unable to attach to target VM.

Error accessing shared memory, rc = -1

 

Comint finished

 

 

 

Thanks 

Philip

 



Re: Executing an ANT process from Java.

2003-07-18 Thread Javier S. Lopez
You can take a look at jde.util.AntServer

It uses the main method to pass the arguments and sets up a SecurityManager to
avoid ANT from killing the app.

Note, this is exactly what the ANT developers say not to do in their
documentation. (Calling their API from main) 

The other thing you are going to see is the use of reflection this is done
to allow compatability between JDK versions. So can probably ignore this and
reference it directly.

Javier

Joseph Campbell [EMAIL PROTECTED] writes:

 Someone on the ANT users list pointed me in the directino of this project for 
 a source of someone who has embedded ANT into their project.  I have need to 
 execute an ANT process from java and am looking for someone who has done it.

 Can you provide any assistance on this topic?
   Thanks,
   Joe Campbell

 -- 
 I wonder if there is anyone in the world who works harder 
 at anything than American school kids work at popularity. 
 Navy SEALs and neurosurgery residents seem slackers by 
 comparison.
  - Paul Graham
 -
 Joseph Campbell  | EMAIL: [EMAIL PROTECTED]
 Staff Consultant | URL:   www.inventa.com
 Inventa Technologies | PH:(856)914-5200
  | PGER:  (888)454-0876
 -



-- 
 



error when trying to connect to an external application via the Socket - attach option when using jdb in jdee

2003-07-18 Thread Paul Kinnucan
Philip Varghese writes:
  Hi 
  
   
  
  Could anyone throw some light on why I get this error when trying to
  trying to connect to an external application via the Socket - attach
  option when using jdb in jdee.
  
   
  
  c:/Main/build-tools/j2sdk1.4.1_01/bin/jdb.exe -attach localhost:3999
  
   

You appear to be trying to attach jdb via a socket to a process that
is expecting a shared memory connection.

- Paul


  
  java.io.IOException: shmemBase_attach failed, error code = -1
  
  at com.sun.tools.jdi.SharedMemoryTransport.attach0(Native
  Method)
  
  at
  com.sun.tools.jdi.SharedMemoryTransport.attach(SharedMemoryTransport.jav
  a:43)
  
  at
  com.sun.tools.jdi.SharedMemoryAttachingConnector.attach(SharedMemoryAtta
  chingConnector.java:43)
  
  at
  com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnection.j
  ava:346)
  
  at
  com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:168)
  
  at com.sun.tools.example.debug.tty.Env.init(Env.java:63)
  
  at com.sun.tools.example.debug.tty.TTY.main(TTY.java:829)
  
   
  
  Fatal error:
  
  Unable to attach to target VM.
  
  Error accessing shared memory, rc = -1
  
   
  
  Comint finished
  
   
  
   
  
   
  
  Thanks 
  
  Philip
  
   
  



Can not parse the thing at point

2003-07-18 Thread Paul Kinnucan
Murali writes:
  I always get Can not parse the thing at point!

This message means that the command cannot determine the class of
the symbol at point.

  whenever I try jde-open-class-at-point (C-c C-v C-g or C-c C-v C-y)
  
  I tried it on a class name.
  
  Here is what I have in my .emacs file
  (add-to-list 'load-path (expand-file-name 
  /u1/local/share/emacs/tars/jde-2.3.2/lisp))
  (add-to-list 'load-path (expand-file-name /u1/local/share/emacs/tars/elib-1.0))
  (add-to-list 'load-path /u1/local/share/emacs/tars/eieio-0.17)
  (add-to-list 'load-path /u1/local/share/emacs/tars/speedbar-0.14beta4)
  (add-to-list 'load-path /u1/local/share/emacs/tars/semantic-1.4.4)
  (add-to-list 'load-path /u1/local/share/emacs/tars/ecb-1.95)
  
  I did set jde-sourcepath
  '(jde-sourcepath (quote (/export/home/murali/proj/java/src 
  /export/home/murali/proj/java/src/common)))
  
  The emacs version I tried are
  20.7.1 on Solaris 2.7
  and 21.2.1 on Windows 2000.
  
  Anybody else have this problem?

Not me.

  Is it my configuration?

Can't tell as you omit the most important information, namely the setting of
jde-global-classpath and the class of the symbol whose definition
you want to find.

  Any workarounds/resolutions?

Make sure that jde-global-classpath includes the class of the
symbol whose definition you want to find.

- Paul