Language integration

Joerg Brunsmann
Thu Apr 12 05:01:00 GMT 2001


if someone wanted to write a 'component' in Java to
extend a 'legacy' application a naive and ad hoc
way to do is:

int main(int argc, char **) {
  jstring jstr = JvNewStringLatin1("A");
  jclass c = ::java::lang::Class::forName(jstr);
  ::java::lang::Object *o = c->newInstance();

where would be compiled as

$ gcj -shared -o

Is this possible? Am I missing something?
Noting that 'gij' calls the 'JvRunMain' function 
I'm asking myself what initialization must be 
run before a gcj compiled shared object can be 
used from other languages than gcj java.

Thanks in advance,


Do You Yahoo!?
Gesendet von Yahoo! Mail -

More information about the Java mailing list