This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

java library wrapper


I'm wondering if it would be possible to create a class-loader-"like"
facility (even just a library) that would allow us to wrap a C or C++
library inside a dynamically created class/package structure. A la
reflection. Between CNI/JNI and some of the other formidable class
manipulation facilities in gcj, it seams at least possible.

I'm going on the assumption that C and C++ libs expose exported symbols
through a symbol table of some kind... like most languages do...

Am I hoping for a miracle...

It would be nice to say:

try{
	Class.getClass(new WrappedLibrary("artsmidi"));
}
catch(Exception e){
	// no such library...
}

Ray


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]