BeanShell Scripting and accessing classes from the PDE
in
Contributed Library Questions
•
1 year ago
So i am trying to get scripting running in Processing using BeanShell as a Java library. I can currently run code from a file but when trying to access classes that are not in processing.core, java, or an imported library, i.e. an sketches inner class created in the PDE i get an error that says the interpreter from beanshell can't find the class in the namespace. for example: if i had an external script file that contained the code
- MyClass mc = new MyClass();
my question is does anyone know of a method to make the sketches inner classes available to the beanshell interpreter.so that i can use the sketches inner classes in scripts?
1