<strong>Using JAVA class in C++ </strong>
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dalibor_Dankic
Posted On:   Friday, February 1, 2002 03:39 AM

Hi friends!



I have fallowing problem:



I have wrote JAVA class which works with database.
This class have one public method, this method return XML
string which represents result set of SQL query. How is possible to
instantiate this class in C++ code and call this method to obtain result,
without running this class separately.
I need just to run C++ program and nothing more. Can JNI help
me with this or JNI is used just in oposit way, to call C++ code from JAVA?



Thanks.

Re: <strong>Using JAVA class in C++ </strong>

Posted By:   Alexander_Krapf  
Posted On:   Thursday, March 14, 2002 03:22 PM

Dalibor,


Try out our JunC++ion tool. It takes Java classes as input and generates C++ proxy classes that can be used just like the underlying Java classes.


It would take you an hour to solve your entire integration problem.


Find out more about JunC++ion at www.codemesh.com.


Good luck,


Alex

Re: <strong>Using JAVA class in C++ </strong>

Posted By:   Duncan_Forster  
Posted On:   Friday, February 1, 2002 03:53 AM

JNI works both ways, but to go from C++ to Java you to need to start a Java VM inside your C++ process. Check out the JNI trail from the Java Tutorial :
http://java.sun.com/docs/books/tutorial/native1.1/index.html
About | Sitemap | Contact