[Zope] [OT] Java Interpretter

Phil Harris phil@harris-family.info
Fri, 18 Jan 2002 12:50:08 -0000


ooooo, you're just showing off now ;)

----- Original Message -----
From: "Chris Withers" <chrisw@nipltd.com>
To: "Simon Coles" <simon@nipltd.com>
Cc: "fsd fds" <mestesso101@yahoo.com>; <zope@zope.org>; <ruperte@nipltd.com>
Sent: Friday, January 18, 2002 12:23 PM
Subject: [Zope] [OT] Java Interpretter


> Simon Coles wrote:
> >
> > Python has an interpreter which makes it very easy to test stuff out.
> > Python has a much shallower learning curve than Java.
>
> Well, okay, since things are going well today, here's a Java interpretter
for ya
> ;-)
>
> batch file:
> SET classpath=E:\LocalCVS\jpe\;.
> python -i jinit.py
>
> jinit.py:
> import java
> if not java.isInitialized():
>     java.initialize()
> from java import Jstring, importClass
>
> sample session:
> E:\>python -i jinit.py
> jvm lib <C:\jdk1.3.1_02\jre\bin\classic\jvm.dll>
> >>> out = importClass('java.lang.System').out
> >>> out.println(Jstring('test'))
> test
> >>>
>
> *grinz*
>
> Chris
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )