We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'd hoped a js host would work, but on my sketch e.g. http://studio.processingtogether.com gives me "TypeError: Cannot read property 'bind' of null" ... without IDing the line.
Answers
http://ProcessingJS.org/articles/p5QuickStart.html
The only real way to deploy a Processing Java sketch is to deploy it as an application. You'd need to host your
.zip
file as a download. I believe GameJolt and itch.io support this, or you could create your own website.But you wouldn't be able to run your Java sketches directly in the browser, unless you went through Processing.js.
Shameless self-promotion: I worte a tutorial on Processing.js here.
No answer there.
I tried http://happycoding.io/tutorials/processing/files/simple-processing-js-sketch.html from local file system. Works fine.
But its program replaced by mine copy and pasted from Processing IDE, I get a blank page - and no console output. Despite that no of 'Processing.js won’t work if any of the following are true' are true.
The program is not one I'd want to post.
Oh well. Perhaps I'll get time to pare it down to the offending line, some time.
Thanks.
If you'd be a little more patient and read the page, there are answers.
You can use the Processing.js which allows basically cross-compiling to js which you can publish on
as is mentioned in the page.
That way you don't have to make an application.
or openprocessing.org I guess.
Oops, sorry. Thanks.
Looks the same as the one I said fails. And it fails the same.
Fails with "Unexpected number" and no location.
Fails with "Cannot read property 'bind' of null". And no location.
You're going to have to be more specific and post a MCVE that demonstrates the problem. Please also try to understand the difference between Processing, JavaScript, and Processing.js. The various links in this thread explain that, and I suggest spending more time reading and understanding before dismissing ideas.
ok, you are impatient again
look at this page : it runs and you can see the code. OK?
http://studio.sketchpad.cc/sp/pad/view/ro.9Q1OPLxROTE67J/rev.4838
Did you register and log in?
As I said, it fails the same.