If you want to just reference anything in java.lang you can
do this:
Jython 2.1 on java1.5.0_02 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> from java.lang import *
>>> Boolean
<jclass java.lang.Boolean at 29789039>
It's okay for playing around in the interpreter, but not
recommended otherwise because you can clobber
objects with the same name in your namespace.

From: jython-users-admin@lists.sourceforge.net on behalf of yinglcs@aim.com
Sent: Sat 11/12/2005 2:32 PM
To: jython-users@lists.sourceforge.net
Subject: [Jython-users] import java in Jython


I am reading a Jython example, it has this line:
import java

My question is what does this line do?
Even even I put that line, it can't find the Boolean() class.
I have to add this line in order for jython to find Boolean class.

from java.lang import Boolean

Thank you.

Check Out the new free AIM(R) Mail -- 2 GB of storage and
industry-leading spam and email virus protection.

SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
Jython-users mailing list