Classloader issue
Hi guys,
I have small test program in Java. When I run it by Sun's Java launcher, it shows both instances created and are the same (sun.misc.Launcher$AppClassLoader), the code:
System.out.println("this.getClass.getClassLoader = " + this.getClass().getClassLoader());
System.out.println("Thread.currentThread.getContextClassLoader = " +
Thread.currentThread().getContextClassLoader());
However, when I run it by my JNI interface (JVM startup, etc) getContextClassLoader() method returns null, while first method returns an sun.misc.Launcher$AppClassLoader instance.
What is that and why it is so ? (I have troubles because of that)
Thanks,
Alex.

