>>>>> Bernd Wengenroth writes:
> Hello, I want to load class-files with the
> ClassLoader.getResourceAsStream( String )-methode.
> i.e. xxx.getResourceAsStream( "package/myClass.class" );
> It's works fine on files without a ".class"-postfix. But files with
> this prefix are not opened (the methode reports null). If i copy
> the same file to the same directory, but without the postfix, the
> stream is returned as expected.
> Any hints ?
That's a security feature, you can't get classes with getResource.
Juergen
--
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802