Jython applets newbie report and help request (Thanks D-Man)!!!

Ron Stephens rdsteph at earthlink.net
Wed May 30 22:52:36 EDT 2001


OK, after much work and help from D-Man, I have managed to use jythonc
to convert some of my Python scripts into .class files, .java files, and
.jar files. This is really cool and I recommend folks try it!!!

Now, the original python programs were quite simple, using only core
python and no library modules. Also, the original python programs, when
typed into the jython interactive shell, ran fine as jython scripts! I
am pleased.

Now, my whole purpose in this is to use them as java applets on html
pages on my web site. I am now having trouble doing this, although I
haven't been trying for long since i just finally got the compiled java
classes and jar files finished, finally (hurray and thanks D Man)

But my first attempt failed. I created an HTML page and entered a java
applet using a jar file as so

<HTML>

<BODY>

<APPLET CODE="jython-jyesno" ARCHIVE="jython-jyesno.jar">

</BODY>
</HTML>

nothing happens when I view this HTML page with a web browser.

I assume I have to use the jar file, rather than the class file, in
order to include all the necessary code to run jython applets?
Can anyone give me a pointer on what to try next?
 D-Man?

Anyone??

Help greatly apprecizted...I am a complete and utter clueless newbie,
but this is really  neat to have written a few python programs that
though simple are meaningful to me, and then successfully compiling them
into java files!

If I get them running as java applets on web pages I may explode form
happiness ;-)))

Python is great!

comp.lang.python folks are even greater!!! ;-)))))))

Thanks for all your past help on python programs and also jython

Ron Stephens
rdsteph at earthlink.net






More information about the Python-list mailing list