Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
where does a class come from?
- From: macneall@xxxxxxxxxxxx (Simon Macneall)
- Subject: where does a class come from?
- Date: Thu, 30 Dec 1999 08:17:56 +0800
I'm not sure if it would work for an applet (security exceptions etc) but you could write a simple class loader that simply delegates everything back to the system class loader after printing out what class it is loading, and where it is loading it from... Simon At 07:22 AM 30/12/99 , Gart, Mitch wrote: >I've got a problem with class version conflicts. My code is >all in a jar but a conflicting version of a class is coming >from somewhere else, outside the jar. I'd like to write a test >that shows where a class is loaded from, that is, what directory >or jar on the CLASSPATH the class comes from. Does anybody know >how to write a test like this? > >I think the problem is made a lot harder by the fact that my code >is an applet. The code can't be started with "java -classpath", >instead it must use whatever classpath is set for Netscape. >(The problem is in Netscape 4.5 on Windows 95.) > >It's pretty mysterious because the user has tried setting their >CLASSPATH to be empty. We don't know where the conflicting version >of the class could be coming from. > >Any ideas how to diagnose where a class version conflict is coming >from, in this environment? Thanks in advance, > >- Mitch > >--- >To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx >To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx --- To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx
- References:
- where does a class come from?
- From: Gart, Mitch
- where does a class come from?
- Prev by Date: where does a class come from?
- Next by Date: where does a class come from?
- Previous by thread: where does a class come from?
- Next by thread: where does a class come from?
- Index(es):