Java Class Loading into Jython

Ranjith Kumar kavi_ranjith at yahoo.com
Wed Jun 4 06:33:50 EDT 2003


You are right the <jvm> / classes is in the classpath and are getting
loaded into the classloader of java.

To give some more info, if we place a class < jvm > / classes /
Imported.class and classes directory is in the classpath , the class
gets loaded perfectly.

Thanks 
ranjith 



Ganesan R <rganesan at myrealbox.com> wrote in message news:<ouel2blsc1.fsf at andlx-anamika.cisco.com>...
> >>>>> "Ranjith" == Ranjith Kumar <kavi_ranjith at yahoo.com> writes:
>  
> > Thank you very much. 
> > The problem of class not found occurs in the following case.
>  
> > When I place the class file with the package
> > com.xxx.yyy.Imported.class  under a directory ( which is in the
> > classpath ) and this directory is not the one in which the jvm is
> > running.
>  
> > The same class is loaded when the class is present in the jvm
> > directory.
>  
> > <jvm > / classes / com / xxx / yyy / Imorted   - not loaded
> 
> I am assuming <jvm>/classes in your classpath. Can you check if the class
> loads correctly in java. If it loads correctly in java but you can't load it
> in jython; I'd consider it a bug in jython (unless, you're playing around
> with the classloader).
> 
> Ganesan




More information about the Python-list mailing list