M
Marcelo
Dear programmers,
I would like to know how to call java from c++. i am using JNI just for
doing the invers (calling c++ from java), but now I am quite lost.
I would like to use something like:
void jprintf(char *str){
//I want to do 2 prints
printf("In c++: %s", str):
...
//Calling :
... printJava(str);
}
with the java method as:
public void printJava(String str){
System.out.println("with java" +str);
}
But my problem as you see is that I don't have the ENV* or the obj*
pointers to play with...
thanks
Marcelo
I would like to know how to call java from c++. i am using JNI just for
doing the invers (calling c++ from java), but now I am quite lost.
I would like to use something like:
void jprintf(char *str){
//I want to do 2 prints
printf("In c++: %s", str):
...
//Calling :
... printJava(str);
}
with the java method as:
public void printJava(String str){
System.out.println("with java" +str);
}
But my problem as you see is that I don't have the ENV* or the obj*
pointers to play with...
thanks
Marcelo