We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › Processing applet in wordpress post
Pages: 1 2 
Processing applet in wordpress post? (Read 12095 times)
Re: Processing applet in wordpress post?
Reply #15 - Feb 21st, 2009, 10:18pm
 
warpcat, what paths are you talking about? An applet has no notion of paths or system files. At best you can specify files (in data folder, they are exported with the applet, so they go in the jar file) or URLs (on same server if applet isn't signed).
Re: Processing applet in wordpress post?
Reply #16 - Feb 21st, 2009, 10:50pm
 
That's what I thought too.  But the error window that comes up has that "user home dir" thing in it.

This is my code:

<APPLET name="FuzzBalls04" WIDTH="640" HEIGHT="480" archive="http://www.akeric.com/processing/FuzzBalls04/FuzzBalls04_web.jar" standby="Loading Processing software..." codebase="http://www.akeric.com/processing/FuzzBalls04/" code="FuzzBalls04_web" mayscript="true" scriptable="true" image="http://www.akeric.com/processing/FuzzBalls04/loading.gif&qu ot; boxmessage="Loading Processing software..." boxcolor="#FFFFFF">
<IMG SRC="http://www.akeric.com/processing/FuzzBalls04/loading.gif&qu ot; WIDTH="1" HEIGHT="1" />
</APPLET>

Thanks for the help!
Re: Processing applet in wordpress post?
Reply #17 - Feb 22nd, 2009, 10:34am
 
Is your applet using some file with absolute path, eg. with loadStrings or loadImage?

A copy of the exact error message might help too.
Re: Processing applet in wordpress post?
Reply #18 - Feb 22nd, 2009, 11:38pm
 
There aren't any hard-coded paths in it.  I have the source working on my site just fine:
http://www.akeric.com/processing/FuzzBalls04/

Here is a test page, where I put the previous applet code into, to try to get it working in the page itself, that fails:
http://www.akeric.com/blog/?page_id=117
When I view that page, where the sketch should be is an error message that says "Error: Click for details".  When I 'click for details' a window pops up saying "application error: the application failed to run".   From there I can click on "Details", and that launches a Java Console, where the third line is the "User Home Directory", which I thought may be the problem (if it was trying to find the code relative to that path).  But I'm fairly ignorant of this stuff (trying to learn...), so it could be something else entirely.  Below is the full dump of that Java Console.  Again, appreciate the help! Smiley

Java Plug-in 1.6.0_11
Using JRE version 1.6.0_11 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\warpcat
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------


load: class FuzzBalls04_web not found.
java.lang.ClassNotFoundException: FuzzBalls04_web

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://www.akeric.com/processing/FuzzBalls04/FuzzBalls04_web.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: FuzzBalls04_web
load: class FuzzBalls04_web not found.
java.lang.ClassNotFoundException: FuzzBalls04_web

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://www.akeric.com/processing/FuzzBalls04/FuzzBalls04_web.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: FuzzBalls04_web
load: class FuzzBalls04_web not found.
java.lang.ClassNotFoundException: FuzzBalls04_web

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://www.akeric.com/processing/FuzzBalls04/FuzzBalls04_web.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: FuzzBalls04_web
Re: Processing applet in wordpress post?
Reply #19 - Feb 23rd, 2009, 8:21am
 
Indeed, User home dir has nothing to do with the bug/exception, it is just part of regular console information...

It looks like your applet code is OK, but I see in the thread a warning by jcukier: "the other thing is that when uploaded as "media" all files become lowercase. Bummer, if your source files had some uppercase."
It might very well be your problem. At least it is worth checking...
Re: Processing applet in wordpress post?
Reply #20 - Feb 23rd, 2009, 6:04pm
 
So basically, the sketch, and all it's "tabs" need to be lowercase?  My code has no external dependencies on media, other than a playlist it streams in over the web.  Well, worth a shot I guess Smiley  Thanks for the feedback.
Re: Processing applet in wordpress post?
Reply #21 - Apr 28th, 2009, 12:10pm
 
Thanks for this, been trying to get WP to work for ages!
Re: Processing applet in wordpress post?
Reply #22 - Oct 27th, 2009, 6:12pm
 
This page was really helpful in getting my processing stuff to embed in Wordpress, thanks everyone!

I also found another interesting website that has what seems like a plug in of sorts and it just would come in real handy for when you wanna put lots of sketches into 1 section. Anyone know what plug in this is?


heres the link:
(i cant actually post link atm as its my first post >_>)
seltar . org

sry about that the best i can link atm

Re: Processing applet in wordpress post?
Reply #23 - Oct 27th, 2009, 10:48pm
 
Hey

That plugin is called a lightbox Wink and is from my website..
I've been lazy and not posted all my projects yet.. but I'll get to it eventually.

-seltar
Pages: 1 2