web2py as a Java application

[edit]

Since version 1.64 web2py runs fully on Java and j2ee using jython.

Here is what you do (assuming java is installed but nothing else)

  • download jython here

  • install jython

    java -jar jython_installer-2.5rc4.jar --console

  • download the sqlite jdbc adaptor here and copy it in the java lib folder.

  • (optional) download the sqlite jdbc adaptor here and copy it in the java lib folder.

  • cd into the web2py folder and run

    /path/to/jython web2py.py

    or

    /path/to/jython web2py.py -h

    for help

  • point your browser to

    http://127.0.0.1:8000

That's it.