# Thread default classLoader

Gilles Roussel (Gilles.Roussel@univ-mlv.fr)
Thu, 15 Apr 1999 10:18:20 +0200

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Gilles Roussel: "JSECURITY Issue: Bad Link"
- Previous message: C Kayson: "Crytpo Packages and Classes not found in import"

    Date: Thu, 15 Apr 1999 10:18:20 +0200

    From: Gilles Roussel <Gilles.Roussel@univ-mlv.fr>

    To: java-security@java.sun.com, jdk-comments@java.sun.com

    Subject: Thread default classLoader

I'm trying to change the default classloader of a newly created thread.
I've tried two methods
1. call to the thread setContextClassLoader() method before starting the
thread in creation thread or in constructor.
2. load my thread class with the Classloader that I wanted to be the
default, and then start the thread.
None of this method works ! sun.misc.Launcher$AppClassLoader classloader
is always used.

Did I misunderstood the classloader mecanism or their is some hiden
security reason for this methods not to work ?

Thanks for reading and I hope you will answer my question !

PS: I did not install any Security Manager.

    --
    Gilles Roussel
    Batiment Copernic - Universit=E9 de Marne-la-Vall=E9e - Cit=E9 Descartes
    5, boulevard Descartes - Champs sur Marne - 77454 Marne-la-Vall=E9e Cedex=
     2 - FRANCE
    Tel : 01-60-95-75-59 - Fax : 01-60-95-75-57
    WWW : http://www-igm.univ-mlv.fr/~roussel

- Next message: Gilles Roussel: "JSECURITY Issue: Bad Link"
- Previous message: C Kayson: "Crytpo Packages and Classes not found in import"