🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16210

ClassLoader question

#16210
From: Jason Burton
Date: Thu, 18 Mar 1999 00:00
16 lines
1320 bytes
I would like to override the default ClassLoader.  First, assuming I make a
custom ClassLoader, how do I tell the JVM to use this new ClassLoader?  VM
Command-line parameter?  If so, which one?

Second, I want to do two things in my ClassLoader class.  I want to use FTP
to check a network location for an updated copy of the class.  If there is a
more recent copy, I want to copy it to the local machine before loading (a
little like an applet, but I want to keep the classes locally permanently,
and not have applet restrictions).  I also want to possibly load a subclass
of the class insetad of the actual class.  Example: ClassLoader thinks it
wants to load "com.tms.MyClass", but I might want to load
"com.tms.mods.MyClass" (which is a modified subclass of "com.tms.MyClass")
instead.

Any hints would be greatly appreciated,
Jason Burton
Technical Details
Message-ID: <7cr9bt$97m21@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,2a92d714a8fd0be5,start
X-Google-Attributes: gidf74b3,public
From: "Jason Burton" <Jason.Burton@McLeodSoftware.com>
Subject: ClassLoader question
Date: 1999/03/18
Message-ID: <7cr9bt$97m21@forums.borland.com>
X-Deja-AN: 456156379
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3