This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
java library wrapper
- From: Ray Auge <rayauge at doublebite dot com>
- To: GCC-Java <java at gcc dot gnu dot org>
- Date: 15 Oct 2003 08:24:14 -0400
- Subject: java library wrapper
- Organization:
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