The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
September 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Dynamic Class Loading from Jar files in Applets

Posted by Sudipta Sinha on September 05, 2000 at 7:20 AM

Hello,
I have a problem with dynamically loading class files from Jar Files in Applets,

Although it works when I have an application , - I do it using the URLClassLoader and
the findClass method which looks for a particular class once the Jar file Url
has been specified and the jar file loader by the URL Classloader

However in an Applet WE ARE NOT ABLE TO INSTANTIATE, CREATE a classloader
so we cannot extend the URLClassLoader class

IS THERE A WAY TO CREATE A CLASSLOADER in an applet in java 1.2
IS IT POSSIBLE TO DO THE ABOVE IN SIGNED APPLETS?

Could any one please give me some help on this topic. I would be grateful
if someone who has faced a similar problem before could kindly tell me how to
solve the problem,

Thanking all in advance,

best regards
Sudipta



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us