Jython 2.2 Beta 2

Jython 2.2 Beta 2 ( http://www.jython.org/ ) will run on JNode. There are issues with the command line interpreter due to the end of file and backspace issues. Running jython with a filename argument works for everything I have tested it with.

o Download Jython from http://www.jython.org and install it on your system.

o Create a jar file named 'jythonlib.jar' that contains the Lib/ and Tools/ directory and the file 'registry'. These files and directories are in the jython installation directory.

o Copy/Paste the jython.jar and jythonlib.jar into the shell/lib/ directory of your jnode source tree.

o Create two descriptors for these files:
org.jython.xml: http://rifers.org/paste/show/4760 (see file at bottom)
org.jythonlib.xml: http://rifers.org/paste/show/4761 (see file at bottom)

o Add the necessary information into build.xml, and full-pluginlist.xml

o Build Jnode and boot it.

o Start the garbage collector with 'gc'

o Execute jython with the command 'jython'

o If you want to 'import' any of the standard python libs, you must extract /jifs/lib/jythonlib.jar and 'set python.home /whereever/you/extracted/jythonlib.jar'


--------------------------------- file org.jython.xml -----------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plugin SYSTEM "jnode.dtd">

<plugin id="org.jython"
name="Jython classes"
version="2.2b2"
provider-name="jython.org"
provider-url="http://www.jython.org"
license-name="lgpl">

<runtime>
<library name="jython.jar">
<export name="*"/>
</library>
</runtime>

<extension point="org.jnode.shell.aliases">
<alias name="jython" class="org.python.util.jython"/>
</extension>

<extension point="org.jnode.security.permissions">
<permission class="java.io.FilePermission" name="<<ALL FILES>>" actions="read,write"/>
<permission class="java.util.PropertyPermission" name="*" actions="read,write"/>
<permission class="java.lang.RuntimePermission" name="createClassLoader" actions="*" />
<permission class="java.lang.RuntimePermission" name="getProtectionDomain" actions="*" />
<permission class="java.lang.RuntimePermission" name="exitVM" actions="*" />
</extension>

</plugin>
==========================================================

--------------------------------- file org.jythonlib.xml --------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plugin SYSTEM "jnode.dtd">

<plugin id="org.jythonlib"
name="Jython classes"
version="2.2b2"
provider-name="jython.org"
provider-url="http://www.jython.org"
license-name="lgpl">

<runtime>
<library name="jythonlib.jar">
<export name="*"/>
</library>
</runtime>

</plugin>
==========================================================