From: Brian Z. <bri...@ya...> - 2001-06-19 06:29:17
|
Yes it runs great if you can input by keyboard. It's so cool to have an on-device OO scripting language on top of a JVM. Steps involved: =========== 1. download from http://www.embedded.oti.com/ and install j9 to pocketpc \vame1.3, make sure you can run the demos 2. download jython2.1a1 from http://www.jython.org , copy \jython-2.1a1 to pocketpc \jython-2.1a1 3. copy Sun's JRE1.1.8 files from "C:\Program Files\JavaSoft\JRE\1.1" to pocketpc \JRE1.1 4. create a shortcut RunJython.lnk using the following 4 lines concated (on a single line seperated by " ") on your desktop PC and copy it to \jython-2.1a1: 119#"\vame1.3\j9.exe" "-bp:\vame1.3\classes.zip" "-cp:\JRE1.1\lib\rt.jar;\jython-2.1a1\jython.jar" "org.python.util.jython" Sample session: =============== Jython 2.1a1 on java1.2.2 subset (JIT: null) Type "copyright", "credits" or "license" for more information. >>> import java >>> print java.util.Date() Mon Jun 18 23:15:28 PDT 2001 >>> import pystone >>> pystone.main() Pystone(1.1) time for 10000 passes = 202.265 This machine benchmarks at 49.4401 pystones/second >>> Wish: ===== 0. it's still too slow; 1. J9 Console gets updated so that it complies to latest pocketpc UI standard (right now the menubar is on the bottom, and the input text field gets blocked by the tiny keyboard); 2. We can do without rt.jar. I tried to put classes.zip into classpath but it does not work; without rt.jar jython cannot "import java". Any other idea? Congrats to the J9 team and the jython team! -Brian |