From: rbill <rb...@di...> - 2002-02-18 18:42:30
|
On Sun, 17 Feb 2002, Wayne Pierce wrote: > I haven't worked with Jython in a while, so I thought I'd build a simple > Applet to refresh my memory. I copied the code from the web site below: > > from java.applet import Applet > > class HelloWorld(Applet): > def paint(self, g): > g.drawString("Hello from Jython!", 20, 30) > > I then used jythonc to create a .jar file and have the following in my HTML: > > <applet code='HelloWorld' archive='hello.jar' width=200 height=200> > <applet> > > But when I load the HTML page all I see is a grey box. I've tried > several different versions of the above line, mostly in the code attribute. > > jythonc didn't give any errors except for the "using depreciated...". > I'm testing this with Sun's JDK 1.4 . Does the browser you are using have plugin support for JDK 1.4? Without plugins, use jdk 1.1.8 to compile applets. If this is no help, forward the options given to jythonc and the java console output. |