Generation of JNI stubs/call sequences? [message #164177] |
Sat, 12 June 2004 13:29  |
Eclipse User |
|
|
|
I have an application where a C++ main creates a JVM and interfaces with
Java code via JNI (don't ask, legacy of old design decisions). Anyhow, I
was wondering if there is a way to automatically generate C++ declarations
for methods
declared 'native'? Also, any sort of tool to aid with the calling of Java
methods
from C++.
-- Boris
|
|
|
|
Re: Generation of JNI stubs/call sequences? [message #164740 is a reply to message #164186] |
Wed, 16 June 2004 10:28  |
Eclipse User |
|
|
|
Olivier Thomann wrote:
> Le Sat, 12 Jun 2004 17:29:43 +0000 (UTC), pelakh@yahoo.com (Boris
> Pelakh) a écrit :
> >declared 'native'? Also, any sort of tool to aid with the calling of Java
> >methods from C++.
> I think this is what the javah tool is doing. This is provided with
> any JDK.
> http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javah.h tml
I was aware of javah (and use it). However, I was looking for something
more interactive - right now I have to get out of eclipse, run javah, and
then edit the resulting file. I would like to right-click on a native
method declaration and get a stub. I guess I can take it to the JDT-dev
list and see how hard this would be.
|
|
|
Powered by
FUDForum. Page generated in 0.03303 seconds