I unzipped the jython package and I can run the jython jar using java –jar jython.jar.  The interpreter works fine.


What the instructions lack is how to copy the jython jar and resources elsewhere.  I don’t want to ship the entire jython zip file with my project; I want to place the relevant parts into a war file.


The #!/usr/bin/python is irrelevant – it’s there because the script has it, but it still doesn’t work without it.


The answer seems to lie in the lib directory – could you tell me how Jython loads resources from it?






From: Daniel Baktiar [mailto:dbaktiar@gmail.com]
Sent: 02 November 2009 05:28
To: jython-users@lists.sourceforge.net
Subject: Re: [Jython-users] from and with keywords


Hi John,


Could you elaborate more on how you install Jython on your environment?

The first line looks like you are invoking jython from your default CPython instead of Jython.

The line 1: #!/usr/bin/python


Could you invoke Jython from your shell/command prompt with that setting?




2009/10/31 <john.m.baker@nomura.com>

I've copied the jython.jar file into my project but I guess I need the Lib directory too?  Does it go on the classpath?  Does Jython look in the current working directory?


This e-mail (including any attachments) is confidential, may contain
proprietary or privileged information and is intended for the named
recipient(s) only. Unintended recipients are prohibited from taking action
on the basis of information in this e-mail and must delete all copies.
Nomura will not accept responsibility or liability for the accuracy or
completeness of, or the presence of any virus or disabling code in, this
e-mail. If verification is sought please request a hard copy. Any reference
to the terms of executed transactions should be treated as preliminary only
and subject to formal written confirmation by Nomura. Nomura reserves the
right to monitor e-mail communications through its networks (in accordance
with applicable laws). No confidentiality or privilege is waived or lost by
Nomura by any mistransmission of this e-mail. Any reference to "Nomura" is
a reference to any entity in the Nomura Holdings, Inc. group. Please read
our Electronic Communications Legal Notice which forms part of this e-mail: