Loading...
Logo
Processing Forum
I'm able to load and run sketches (without libraries) perfectly fine using the Wordpress plugin processing-js-easy, but I want to upload sketches that contain libraries. When I do, the sketches don't complete.


I'm relatively new to processing, so if you have any ideas, please speak to me like I'm a chair. 

I've tried uploading the .jar file into the same directory as the .pde (ie wp-content-uploads), but that doesnt work... any other ideas???

Thanks

d

note: I realize I posted this in the wrong forum/area. apologies

Replies(5)

JavaScript doesn't support Java libraries, plain and simple.
You can export to an applet with Processing 1.5.1 if you really need them (with gotchas).
Or search for potential replacements in JS.

And, yes, I moved the topic
hmm OK, thanks. I have tried looking for a prohtml replacement in JS but no such luck.

What are "gotchas"? I tried exporting a as an applet in P 1.5.1. but no such luck...

Thanks!
Gotchas: mostly limited rights of applets, eg. when you try to read from a system file or from another site. Then you need to sign the jars, a process not very hard, but not straightforward either.
And and add on to these gotchas would be that, not many people will actually finally run your sketch applet. 

  1. Because some people won't have java installed (properly)
  2. Some people won't have browser configured
  3. Some people will get scared by the fact that some warning and risk messages will pop up with running applet
  4. Some people won't like that browser/computer slows down when the applet starts to run (but this one more applies to older computers)
  5. Forget about mobile devices (mobile browsers: android, winhpone, iphone)

So exporting applets, though technically is a way to "show your sketch to the world", in the reality it will never shine. This is why exporting applets IMHO something which becomes less and less useful as the time goes. 
haha ok. i get your point.

so you suggest that I try JS ... or just give up? haha

thanks for your feedback