By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,798 Members | 1,336 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,798 IT Pros & Developers. It's quick & easy.

Dynamic classpath for jars

P: n/a
Hi, all !!!

Question: I copy some jars with classes inside during my java program runs.
How can I dynamically load these classes from jar?

Thanx.
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Alex Ostrikov" <ao*****@hotmail.com> wrote in message news:<OGaAb.11722$Yt4.5876@lakeread05>...
Hi, all !!!

Question: I copy some jars with classes inside during my java program runs.
How can I dynamically load these classes from jar?

Thanx.

Using a class loader which scans the necessary directories for
new/updated Jar files. I'm not sure if such class loader function-
ality exists within J2SE - you may find an example of a bespoke
class loader by searching Google. Certainly there are class loaders
which can fetch classes from a Jar file pointed at by a given URL,
but they require the software to know/'be told' the location of the
Jar - they don't hunt for it themselves.
-FISH- ><>
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.