From: Ted S. <ts...@ya...> - 2001-08-03 19:10:49
|
j9 examples run fine, but I can't import pystone. Here is my shortcut - 119#"\vame1.3\j9.exe" "-bp:\vame1.3\classes.zip" "-cp:\JRE1.1\lib\rt.jar;\jython-2.1a3\jython.jar" "org.python.util.jython" I used the largest classes.zip from the vame distribution. Any ideas? Also - has anyone gotten AWT working from jython on the iPAQ? Best, Ted > 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 > > Just got myself an iPaq 3670, and tried Sun's > Personal > Java > http://developer.java.sun.com/developer/earlyAccess/personaljava/ > on it, it > runs okay. This is basicly a Java1.1 runtime without > Swing, but awt and JNI > is supported. > > > > __________________________________________________ > Do You Yahoo!? > Make international calls for as low as $.04/minute > with Yahoo! Messenger > http://phonecard.yahoo.com/ __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ |