|
From: <bc...@wo...> - 2001-02-05 15:34:30
|
[syKim]
>I'm begginer for jython..
>
>I want to run some applet under MS explorer.
>
>I tested simple code like that :
>
>## HelloApplet.py
>import java
>class HelloApplet(java.applet.Applet):
> def paint(self,g):
> "@sig public void paint(java.awt.Graphics g)"
> g.drawString ("Hello World!",50,25)
>HTML code :
><html><body>
><applet code=HelloApplet.class archive=HelloApplet.jar width=200 height=300>
></applet>
></body></html>
>
>It works under both appletviewer & netscape..
>
>but, It doesn't work under MS explorer..
You can try to open the java console to see the actual error message. On
my version of MSIE it is under the View\Java Console menu.
When I run the applet I will get a "com.ms.security.SecurityExceptionEx:
Unable to access system properties." which is OK.
>What can I do something for solveing this problem?
>
>(I guess that plug-in's problem..)
>
>my enviroment :
>
>windows ME
>jdk1.3.0_01
>jre 1.3.0
>jython 2.0
I'm guessing that you compiled the applet while running jdk1.3. That
does not work. You will have to use a jdk1.1 when compiling the applet.
If I compile an applet with jdk1.3 and run it in MSIE, I get a
com.ms.security.SecurityExceptionEx: java.io.IOException: bad path:
...java\awt\event\HierarchyEvent.class
in the MSIE java console.
regards,
finn
PS. Is there anything you can do to avoid sending mails as raw base64.
This is what your mail looks like in my mail program. I have to go
through some manual work in order to read the actual text:
To: "Jython-Dev" <jyt...@li...>
Subject: [Jython-dev] Applet & MS explorer problem..
From: "syKim" <re...@ne...>
Date: Sat, 3 Feb 2001 13:30:34 +0900
SSdtIGJlZ2dpbmVyIGZvciBqeXRob24uLg0KDQpJIHdhbnQgdG8gcnVuIHNvbWUgYXBwbGV0IHVu
ZGVyIE1TIGV4cGxvcmVyLg0KDQpJIHRlc3RlZCBzaW1wbGUgY29kZSBsaWtlIHRoYXQgOg0KDQoj
IyBIZWxsb0FwcGxldC5weQ0KaW1wb3J0IGphdmENCmNsYXNzIEhlbGxvQXBwbGV0KGphdmEuYXBw
bGV0LkFwcGxldCk6DQogICAgZGVmIHBhaW50KHNlbGYsZyk6DQogICAgICAgICJAc2lnIHB1Ymxp
YyB2b2lkIHBhaW50KGphdmEuYXd0LkdyYXBoaWNzIGcpIg0KICAgICAgICBnLmRyYXdTdHJpbmcg
...
|