Saturday, November 8, 2008

Running applets from Blogger

I have been trying to get my applets, exported from Processing, to run in Blogger. I can't seem to get them working but perhaps it is only my firewall. So could you folks who are reading this please post some comments and let me know whether you can see the applet that I have embedded here. The applet is actually running from my personal website. If it isn't running in Blogger, then just follow the link to my website and it should be running there. If it doesn't then please let me know about that too.

According to the comments I have been getting, it is not possible at this point to run applets from within Blogger. So just follow the link below to see the applet. The previous post has some screenshots of the applet.

View it on my website: http://www.jannetta.com/masswriting/kochcurve

5 comments:

Anonymous said...

Sorry, no, it's not there. I get a 'class not found' exception.

Works well on the website, however, and looks nice.

java.lang.Exception: comp is null
at sun.plugin2.applet.Plugin2Manager.runOnEDT(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
load: class KochCurve.class not found.
java.lang.ClassNotFoundException: KochCurve.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://jssmasswriting.blogspot.com/2008/11/KochCurve/class.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: KochCurve.class

edtoo said...

Same errors as Mike, the buttons look better now.

Wiley said...

You can't run Java in a blogger blog post.

lazydog said...

Not sure if you're still interested but you can get Applets to work in Blogger posts. You need to host the applet on your own site and then embed the applet in your post using an iframe tag.

b e n

jannetta said...

Hi Lazydog
Thanks for the suggestion. I'll try it some time.