calysto_processing icon indicating copy to clipboard operation
calysto_processing copied to clipboard

import external Processing library - Reference Error

Open loraxman opened this issue 3 years ago • 3 comments

External libraries import but get ReferenceError: GetRequest is not defined when trying to instantiate an object.

See below for example:

import http.requests.*; GetRequest get = new GetRequest("http://httprocessing.heroku.com"); get.send(); println("Reponse Content: " + get.getContent()); println("Reponse Content-Length Header: " + get.getHeader("Content-Length"));

PostRequest post = new PostRequest("http://httprocessing.heroku.com"); post.addData("name", "Rune"); post.send(); println("Reponse Content: " + post.getContent()); println("Reponse Content-Length Header: " + post.getHeader("Content-Length")

loraxman avatar Jun 23 '22 20:06 loraxman

This seems to be caused by "processing-java" not knowing where libraries come from. Appears related to processing-java and external libraries

loraxman avatar Jun 23 '22 21:06 loraxman

After digging in further into this repo, am I right to conclude that Calysto can ONLY run what is in the core for Processing JS? In other words, it can't import the java base libraries for Processing since it is really only the Javascript core of Processing?

loraxman avatar Jun 29 '22 15:06 loraxman

That is correct... this is only a wrapper around the JavaScript part.

dsblank avatar Jun 29 '22 18:06 dsblank