|
From: Brian Z. <bri...@ya...> - 2001-06-18 23:37:55
|
A little progress, thought the group would be interested:
I copied the jython.jar of 2.1a1 over, and tried to run a simple script
on pjava
import java
f = open('\\temp\\test1.txt', 'w')
print >>f, java.util.Date()
f.close()
The same script runs okay on pjava emulator on the desktop, but failed
with the following message:
Traceback (innermost last):
File "<console>", line 1, in ?
ImportError: no module named java
in the java console. I noticed that different even from the pjava
emulator, the StrongArm pjava does not have rt.jar or classes.zip, in
stead, it got a larger javai.dll. I guess jython imports from the
classpath, that probably can explain why the import failed while --help
works fine.
Because WinCE does not provide a command prompt, testing the above
involves either using the "Run" dialog easter egg and typing the whole
pjava command line, or editing a shortcut from a connected desktop.
I also heard about the Visual Age Micro Edition from IBM, the j9 runtime
got a java console that accepts input, and uses classes.zip, so I might
give that a shot tonight.
-Brian
----- Original Message -----
From: "Brian Zhou" <bri...@ya...>
To: <jyt...@li...>
Sent: Friday, June 15, 2001 8:13 AM
Subject: [Jython-dev] jython port to PocketPC/Personal Java?
> 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.
>
> I'm thinking it probably will be really cool to have Jython running on
top
> of it. That way, I can develop or at least test out my idea w/o the
need of
> an extra PC.
>
> Will probably give it a try this weekend. But by looking at Pocket
Scheme
> site http://www.angrygraycat.com/scheme/pscheme.htm , esp.
> http://www.angrygraycat.com/scheme/cestdio.htm it seems WinCE lacks
stdio. I
> doubt Sun's pjava has support in it.
>
> Can any of the developers give some insight on what area of code I
need to
> look, and what kind of workaround there might be?
>
> Willing to invest some time to get it working if I can get some help
from
> the jython team.
>
> -Brian
>
>
> _______________________________________________
> Jython-dev mailing list
> Jyt...@li...
> http://lists.sourceforge.net/lists/listinfo/jython-dev
>
|