Java Class Loading into Jython
Ranjith Kumar
kavi_ranjith at yahoo.com
Mon Jun 2 09:24:47 EDT 2003
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
<jvm > / com / xxx / yyy / Imorted - loaded perfectly
I would like to know on what criteria the byte files loaded into the
jvm.
ranjith
Ganesan R <rganesan at myrealbox.com> wrote in message news:<oubrxnze1p.fsf at andlx-anamika.cisco.com>...
> >>>>> "Ranjith" == Ranjith Kumar <kavi_ranjith at yahoo.com> writes:
>
> > Hi there ,
> > I am running an java application which uses jython interpreter. My aim
> > is to import my custom java class files into my jython scripts. These
> > class files are not placed inside any of the jars residing in the
> > classpath. Where should i place the class files.
>
> Any class files in your classpath can be loaded in jython. If those
> classes are accessible from your java application you are already set.
>
> Ganesan
More information about the Python-list
mailing list