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
Re: [Jython-users] adding jars to the classpath
by Oti other posts by this author
May 14 2003 8:08PM messages near this date
[Jython-users] adding jars to the classpath | [Jython-users] Any one writing Jython Applets based on JApplet (not awt.Applet...)?
[ Cherney John ]
>  Is there a way to add jar files to the classpath in an already
>  running
>  jython interpreter? I want to add another jar so I can import it
>  without
>  having to kill the interpreter, go back to the command line, modify
>  my
>  CLASSPATH environment variable, and restart the jython.bat
>  interpreter. I
>  was looking at sys.modules, but add and append didn't work. Looking
>  at the
>  printout of sys.modules, that kind of makes sense. Is there way of
>  doing
>  this?

You can try sys.add_extdir(jardir)

From JythonEssentials, p. 182:
"Forces Jython to scan all .jar or .zip files in jardir for Java
packages and classes."

Best wishes,
Oti.

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

_______________________________________________
Jython-users mailing list
Jython-users@[...].net
https://lists.sourceforge.net/lists/listinfo/jython-users
Thread:
Cherney John-CJC030
Oti

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