# Changing classloader of a class

Rickard Öberg (rickard@futurniture.se)
Thu, 09 Jul 1998 17:36:00 +0200

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Jan Luehe: "Re: jce 1.2"
- Previous message: Gilles Gravier: "Re: JVM ByteCode Verifyer documentation?"

    Date: Thu, 09 Jul 1998 17:36:00 +0200

    From: "Rickard Öberg" <rickard@futurniture.se>

    To: java-security@java.sun.com

    Subject: Changing classloader of a class

Hi!

Is there some way to get a system-class and define it with my own
classloader?
I have tried to call getSystemResource in the loadClass-method of my
classloader but the security-restrictions doesn't allow me to get the
classes (if I change the name of the class-file to .clas and load that
it works fine though). The API-docs hint that the
getSystemResource-method calls the securitymanager to check if it's ok
to load from the .class-file, but even though I have made my own
securitymanager which allows this (essentially the NullManager) it
doesn't work.. :-(

Any ideas??

/Rickard

- Next message: Jan Luehe: "Re: jce 1.2"
- Previous message: Gilles Gravier: "Re: JVM ByteCode Verifyer documentation?"