Entry 3114
Debugging Java classloaders with Jython itself
Submitted by Leo Soto
on Jan. 31, 2010 at 4:25 a.m.
Language: Python console session. Code size: 409 bytes.
~/src/jython$ jython Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54) [Java HotSpot(TM) 64-Bit Server VM (Apple Inc.)] on java1.6.0_17 Type "help", "copyright", "credits" or "license" for more information. >>> from java.net import URL, URLClassLoader >>> jar_loader = URLClassLoader([URL("jar:file:/foo.jar!/")]) >>> from org.python.core import Py >>> Py.classLoader == url_loader.parent True
This snippet took 0.03 seconds to highlight.
Back to the Entry List or Home.