ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> Jython-users
Jython-users
[Jython-users] Example of Java class reloading
by Gustav Bostrom other posts by this author
Feb 27 2002 4:33PM messages near this date
Re: [Jython-users] Why is self used so much | Re: [Jython-users] Example of Java class reloading
Hi!

I'm struggling to get the Java-class reloading to work.=20
I'm not very succesful.

Does anyone have a good example to share?=20

I tried this, but it didn't work:

import jreload
classpath=3D["V:\\eonworx\\output\\contrib\\studio\\classes"]

classesLoadSet=3Djreload.makeLoadSet("classes",classpath)
print classesLoadSet

from classes import Hello
jreload.reload(classesLoadSet)

def rl():
    jreload.reload(classesLoadSet)

def runHello():
    Hello().sayHello()


When I run rl() the Hello-class is still not reloaded and runHello() =
still produces the old result.


gustav bostr=F6m

the eon company
www.eoncompany.com

o +46-8-54528800
m +46-70-9575154
e gustav.bostrom@eoncompany.com
Attachments:
unknown1

Thread:
Gustav Bostrom
Samuele Pedroni

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved