🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1872

Re: URLClassLoader not working

#1872
From: Nabin Thomas
Date: Wed, 05 Sep 2001 15:48
35 lines
1964 bytes
You need to specify the class loader to be used
Class c=Class.forName(nameOfClass,true,myClassLoader);

Eduardo Bastos Leite wrote:

> I am trying to use the URLClassLoader to add a bunch of jars dynamicaly in
> my application's classpath. I succesfully create a URLClassLoader, but the
> classes are not being found by a simple Class.forName() call.
>
> Am I forgetting to do something for this to work??
>
> Thanks in advance,
>
>     Eduardo Leite
>     eleite@nce.ufrj.br

--

        ***********************************
***************************************************
******************* Web Card **********************
***************************************************

Name :   Nabin Thomas

e-mail :   nabinthomas.DONOTSPAM@hotmail.com

Web :   http://nabin.topcities.com
     http://nabinthomas.net

Feel free to contact me thru e-mail or MSN Mssenger
if required but DONOT SPAM

***************************************************
 ***********************************
Technical Details
Message-ID: <3B964932.2F0CE453@hotmail.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!xmission!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3b853acd$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,64abc1de0575016f
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-09-05 09:14:16 PST
Message-ID: <3B964932.2F0CE453@hotmail.com>
Date: Wed, 05 Sep 2001 21:18:02 +0530
From: Nabin Thomas <nabinthomas.DONOTSPAM@hotmail.com>
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: URLClassLoader not working
References: <3b853acd$1_2@dnews>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 202.9.167.13
X-Trace: dnews 999705778 202.9.167.13 (5 Sep 2001 09:02:58 -0700)
Lines: 38
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!xmission!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews