Hello,
If you want to port your C++ extension to Java, you can download the extension kit at the following address:
Please login to see this link.
You will need Netbeans to use it. It is quite simple and very close to the C++ extension kit.
In case of problem do not hesitate to contact me me or post in this thread.