I was wondering how I could use the system class loader (i.e. the classloader that uses CLASSPATH) in the DefineClass method.
For some reason, the following code crashes JVM and generates a core dump, any idea why? jclass classLoader; jclass cls; classLoader = (jclass)(*env)->FindClass(env,"java/net/URLClassLoader"); cls = (jclass)(*env)->DefineClass(env, name, classLoader, (jbyte*)data, size);
I'm just trying to use the URLClassLoader to load my class using DefineClass.