We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Exception in thread "Processing.BasicServer" java.lang.NoSuchMethodError: processing.app.Base.showWarning(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V
Tonight I saw that there was a new Version 2.2, so I upgraded from 2.1.2, hoping that would fix the problem, but it does not.
Another option is directly open the generated "index.html" inside "web-export" subfolder under a Firefox browser.
Firefox and derivatives like Seamonkey, Palemoon, Waterfox, Songbird, etc. still allow running scripts w/o a server! :bz
Unfortunately, I can't open the index.html file, because another effect of this problem is that when I try to export a project, the index.html file isn't generated :-/
That file is generated by merely clicking at the Run button or hit CTRL+R! >-)
However, it looks like I found the cause of the problem. I started deleting code from the sketch until almost nothing was left but the basic setup, and it was still failing.
But then I changed the size() call, and it started working. I had been defining a global variable and then using it to set the window size, like:
and then i changed the size to use constant values instead:
So all this time, you had never tested some1 else's code? And concluded JS Mode wasn't working due to 1 app of yours? :-&
Indeed I've got some online examples which use variables as size()'s parameters.
But generally, I post from Java Mode to online hosts w/o testing them in JS mode 1st! 8-|
actually, i concluded it wasn't working based on testing numerous sketches that all had the same problem and looking online for possible solutions. i didn't post my request after just a single test on a single app.