Q : About Jython & Applet (i'm begginer -_-)

Fredrik Aronsson d98aron at dtek.chalmers.se
Fri Feb 2 11:24:11 EST 2001


I used your code but compiled with

jythonc -c -d -j Hello.jar HelloApplet.py

and used HTML:

<html><body>
<applet code="HelloApplet.class"
        archive="Hello.jar"
        width=300
        height=250>
</applet>
</body></html>

Now it works in both netscape and appletviewer for me.


[Posted and mailed]

In article <95c4r1$bv9$1 at news1.kornet.net>,
	"??" <reborn at neozone.net> writes:
[snip]
> 
> I made HTML file like that
> 
> <html><body>
> <applet code="HelloApplet.class" width=300 height=250>
> </applet>
> </body></html>
> 
[snip]
> 
> but, after I complie it like that :
> jythonc --core -d HelloApplet.py
> 
> It make two java file (HelloApplet.java, HelloApplet.class)

didn't it make a HelloApplet$_PyInner.class also?
You also need the a lot of classes from the org.python.core
in the jar file, but that is taken care of by jythonc.

Hope this helps

/Fredrik



More information about the Python-list mailing list