Just noticed something else in there which is probably your real problem.
Message snipped to include only what I need.

> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Brian Jones
>
> Could someone familiar with ClassLoader.getSystemResourceAsStream tell
> me what the jdk's implementation is expected to do?  Ie, it appears
> via running an application I have with `java -v' that I'm trying to
> get a resource (a class) in my current CLASSPATH but which is not ...

A resource is actually just a file.  Give it a filename.  If you want it to
load a class, use Class.forName().  Otherwise, specify the entire filename
to getSystemResourceAsStream().  That is probably where you are going wrong.
It will return null on
ClassLoader.getSystemResourceAsStream("java.lang.Class") because there is no
such file in the classpath.
ClassLoader.getSystemResourceAsStream("java/lang/Class.class") will return a
full InputStream.

--John Keiser

Reply via email to