Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
Thanks & Regards
Sidharth Pallai
Can anyone give any idea of how to load a C/C++ file with java.
Aditi
Thanks & Regards
Sidharth Pallai
Isn't the loading of c/c++ source would be possible with reflection api?
Aditi
Thanks & Regards
Sidharth Pallai
both can be used in conjunction.
Aditi
What exactly do you mean by "load a C/C++ file with Java"? If you mean load the code into memory to execute within the JVM, you're going to have to do that via JNI directly since there are several other operations which need to occur for a native executable - like linking to dynamic libraries - and C++ structures (like classes, enums, structs, pointers) aren't precisely equivalent to Java's so you would need the JNI interface to negotiate on your behalf.Can anyone give any idea of how to load a C/C++ file with java.Is it possible with any of java class loaders or through reflection or introspection.