Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: where does a class come from?


  • From: Timothy_E_Troy@xxxxxxxxx (Timothy E Troy)
  • Subject: Re[2]: where does a class come from?
  • Date: Thu, 30 Dec 1999 10:22:30 -0500

    Shouldn't the package name be com.netegrity.mitch.applet?


______________________________ Reply Separator _________________________________
Subject: Re: where does a class come from?
Author:  Adam Gifford <agifford@xxxxxxxxx> at Internet
Date:    12/30/1999 8:51 AM


If you aren't using a package for your classes,
i'd suggest changing them to use your own package.  This should 
minimize the chances that conflicting classes are used.
    
package mitch.applet;
    
probably hasnt been used before :)
    
"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

---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx