|
Re: [Jython-users] Re: jython and jnlp silly me - how does it work?
From: Matt Payne <Payne@Ma...> - 2002-11-18 14:19
|
Quoting Eric Jain <Eric.Jain@...>: > > > from org.test import A, B, C > > This is the recommended way. > > Just noticed another disadvantage of having to do so: This doesn't allow > lazy loading of classes by Java Web Start, i.e. all classes are always > downloaded, even if they are never used. > Eric - I'm new to the world of http://java.sun.com/products/javawebstart/. I thougth all the jars mentioned in the <resources> section were downloaded before the program started. Then these jars become the classpath for the program. Isn't this the case? Is there a way to get jython to load needed jars from a URL at runtime? It would be great if sys.path could contain URLs.... has anyone done this? I think jython + java webstart is a combination with great potential. I haven't quite figured out how to use classes from JARs that are not in the stock jython & java distributions. Do you have examples of how to do this? My example is at http://mattpayne.org/jython/p2.jnlp (http://mattpayne.org/jython/p2_jnlp.txt to see what my XML file looks like). It's just the embedding example from Chapter 12 of Jython Essentials from ora.com. Instead of loading embed.py from the local filesystem, I load it from a URL using a simple java class. You can see all the source if you go to http://mattpayne.org/jython -Matt |
| Thread | Author | Date | |
|---|---|---|---|
| [Jython-users] Re: jython and jnlp silly me | Eric Jain <Eric.Jain@is...> |
|
|
|
|
|
|