File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Class Loader - Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Class Loader - Applet" Watch "Class Loader - Applet" New topic
Author

Class Loader - Applet

L Goundalkar
Ranch Hand

Joined: Jul 05, 2001
Posts: 395
Hi,
In JVM specification its been mentioned, that if I am using different classloaders ( custom class loaders ) then I cannot reference the classes loaded in another class loader. This way it creates logical grouping like "namespace" for the class loaders.
An example is provided, which considers the applet getting loaded in the client side plug-in. If the package and class name of the applet is same but the server IP is different then for each server IP a difference class loader is instantiated and it takes care of loading the classes for the applet.
My question is does the JVM on the client ( java plug-in )use different class loaders for different IP address or different browser windows ?
What happens If I open the same page having applet in two different windows? Does it load two class loaders or just a single class loader for the server IP is used?
Thanks for the time.
Cheers.


<b>L G Goundalkar</b><br /> <a href="mailto:lggoundalkar@yahoo.com" rel="nofollow">lggoundalkar@yahoo.com</a> <br />Sun Certified Programmer for Java 2 Platform.<br />Sun Certified Web Component Developer for J2EE.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Class Loader - Applet
 
Similar Threads
Insights on Class loading needed
Applet-to-Applet, ClassCastException
What does class loader means?
Order in which class is searched
Advantages of User Defined ClassLoader?