Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Generation of JNI stubs/call sequences?
Generation of JNI stubs/call sequences? [message #164177] Sat, 12 June 2004 13:29 Go to next message
Eclipse UserFriend
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 #164186 is a reply to message #164177] Sat, 12 June 2004 14:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: olivier_thomannNO.ca.ibm.comSPAM

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
--
Olivier
Re: Generation of JNI stubs/call sequences? [message #164740 is a reply to message #164186] Wed, 16 June 2004 10:28 Go to previous message
Eclipse UserFriend
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.
Previous Topic:JDT internals question
Next Topic:AST sample codes or documentation
Goto Forum:
  


Current Time: Thu May 08 13:44:44 EDT 2025

Powered by FUDForum. Page generated in 0.03303 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top