Title: No Jython Launcher Options (Mac OS X Jython 2.5.2)
Type: Severity: major
Components: Installer Versions: Jython 2.5
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, kmoran
Priority: Keywords:

Created on 2011-07-27.21:37:39 by kmoran, last changed 2013-02-25.19:39:08 by fwierzbicki.

msg6586 (view) Author: Kevin (kmoran) Date: 2011-07-27.21:37:38
On Mac OS X Lion and a fresh installation of Jython 2.5.2, there are no Jython Options meaning I can't increase the heap space for my help. Here are the results of 'help':

usage: jython [option] ... [-c cmd | -m mod | file | -] [arg] ...
Options and arguments:
-c cmd   : program passed in as string (terminates option list)
-Dprop=v : Set the property `prop' to value `v'
-C codec : Use a different codec when reading from the console.
-h       : print this help message and exit (also --help)
-i       : inspect interactively after running script
           and force prompts, even if stdin does not appear to be a terminal
-jar jar : program read from in jar file
-m mod   : run library module as a script (terminates option list)
-Q arg   : division options: -Qold (default), -Qwarn, -Qwarnall, -Qnew
-S       : don't imply 'import site' on initialization
-u       : unbuffered binary stdout and stderr
-v       : verbose (trace import statements)
-V       : print the Python version number and exit (also --version)
-W arg   : warning control (arg is action:message:category:module:lineno)
file     : program read from script file
-        : program read from stdin (default; interactive mode if a tty)
arg ...  : arguments passed to program in sys.argv[1:]
Other environment variables:
JYTHONPATH: ':'-separated list of directories prefixed to the default module
            search path.  The result is sys.path.

The options show up on an installation of CentOS.
msg7742 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2013-02-25.19:38:20
Sorry this never got answered. The answer is that you can pass args to the Java side with -J. So for increasing max memory to 1024m you would do this:

jython -JXmx1024m

msg7743 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2013-02-25.19:39:08
Oops that was not quite right, should be (note the extra dash):

jython -J-Xmx1024m
Date User Action Args
2013-02-25 19:39:08fwierzbickisetmessages: + msg7743
2013-02-25 19:38:20fwierzbickisetstatus: open -> closed
resolution: works for me
messages: + msg7742
nosy: + fwierzbicki
versions: + Jython 2.5, - 2.5.2
2011-07-27 21:37:39kmorancreate