Jython
□未翻訳
□翻訳中
□翻訳完了(Yota Ichino)
■レビュー(Omi Chiba)
Jython
web2pyは普段CPython(C言語で実装されたPythonインタプリタ)で稼動しますが、Jython(Java言語で実装されPythonインタプリタ)でも動作します。これはweb2pyをJavaの基盤で稼働させることを許可します。
web2py normally runs on CPython (the Python interpreter coded in C), but it can also run on Jython (the Python interpreter coded in Java). This allows web2py to run in a Java infrastructure.
web2pyはJythonですぐに実行するにもかかわらず、ややこしいJythonのセットアップやzxJDBC(Jythonのデータベースアダプタ)のセットアップで複雑でトリッキーなことがあります。以下はその手順です:
Even though web2py runs with Jython out of the box, there is some trickery involved in setting up Jython and in setting up zxJDBC (the Jython database adaptor). Here are the instructions:
Jython.orgから "jython_installer-2.5.0.jar" (または 2.5.x) をダウンロード
Download the file "jython_installer-2.5.0.jar" (or 2.5.x) from Jython.org
それをインストール:
Install it:
1.
java -jar jython_installer-2.5.0.jar
1.
/path/to/jython web2py.py
執筆時点で、Jythonではsqliteとpostgresのみサポートされています。
At the time of writing we only support sqlite and postgres on Jython.