Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JNI clarification  RSS feed

 
bharani rao
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i have a c++ program with a class, and many functions.
it is basically a phone program.. it can make call, answer call, have conferences, it can transfer calls, it can hold calls etc.,
now i have written a java native method for a c++ function called start() which is in c++ code.
this function initializes the phone. once initialized, any activity can be made in that phone(like the functions mentioned above).

my questions are,

1. i want to create a GUI in java for the code in c++ using JNI.... Is it possible???
2. i have just written native method for only one function of the c++ in java.. it is throwing an error




what is this error???

3. is it possible to include JNIEXPORT void JNICALL etc., inside a c++ class??? Because the error is disappearing when i comment the main class and the c++ class and have only the methods just as in any other examples of JNI..

I'm working in linux..... so i deal with .so file rather than .dll files

every thing is perfect...
sample programs with no c++ class are running fine....
i tried many samples, all running fine except this main program which i need to run.

any help please...
advise me..

thanks in advance




 
bharani rao
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any help please.....
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
libsample.so: undefined symbol: pjsua_perror

Your library is found just perfectly, but a library it is using isn't. Now I don't know in which library this "pjsua_perror" is located, but that needs to be in the path as well.
 
bharani rao
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you rob
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!