i new jython. downloaded jar file here http://www.jython.org/downloads.html
download jython 2.7beta1 - jython.jar installer : standalone version without bundled python files.
when run it:
$ java -jar jython-2.7-b1.jar jython 2.7b1 (default:ac42d59644e9, feb 9 2013, 15:24:52) [java hotspot(tm) 64-bit server vm (apple inc.)] on java1.6.0_33 >>> print "hello" ... i didn't echoed string "hello", instead got "...".
i guess point here "bundled python files" missed jar.
the "bundled python files" python standard library modules (such os.py) found in lib folder of jython installation.
when running jython in standalone mode, -- including bundled python files -- packaged in single jar file. current release jython 2.7 jython-standalone-2.7-b1.jar. when using jar file, not see strange behaviour shown in question. simple print statement works:
$ java -jar jython-standalone-2.7-b1.jar jython 2.7b1 (default:ac42d59644e9, feb 9 2013, 15:24:52) [java hotspot(tm) client vm (oracle corporation)] on java1.7.0_03 type "help", "copyright", "credits" or "license" more information. >>> print "hello" hello >>> the jython-2.7-b1.jar file variant of standalone jython not include bundled python files. don't know why want use it. haven't been able find documentation explains why provided separate download @ http://www.jython.org/downloads.html.
Comments
Post a Comment