add jni in any C++ application ?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   bart_rolet
Posted On:   Wednesday, December 10, 2003 06:44 AM

How can I add jni in a application already working in c++? Hello; I have an application built in c++ (ohphone) without gui. I would like to modify this application, adding a gui in java. the problem is that this application is using a lot of libraries in C++ (openh323, pwlib) - I tried to add some natives methodes on the principale file, I add the header as it should be on the .h file. it compile; then i build the shared lib : under linux doing something like: gcc -W1 o mulib.so ppalefile.o of course it doesn t work: I ve got a java.lang.UnsatisfiedLinkError How could I avoid this ? thanks Bart    More>>

How can I add jni in a application already working in c++?


Hello;
I have an application built in c++ (ohphone) without gui.
I would like to modify this application, adding a gui in java.
the problem is that this application is using a lot of libraries in C++ (openh323, pwlib)

- I tried to add some natives methodes on the principale file,
I add the header as it should be on the .h file.
it compile; then i build the shared lib :
under linux doing something like:
gcc -W1 o mulib.so ppalefile.o

of course it doesn t work: I ve got a
java.lang.UnsatisfiedLinkError

How could I avoid this ?


thanks

Bart

   <<Less
About | Sitemap | Contact