Including an external jar library in smartapp


#1

Hi everyone, just starting out with SmartThings. I am building a smartapp and I would need to include classes from an external jar library to my code. I have the jar file locally, on my computer.
Can anybody please tell me if this is possible via some smartapp settings or a specific command in groovy?

Thanks in advance!

Maxime


(Jim Anderson) #2

Hi @pepper,

Just to clarify, you cannot include your own class or external jars. SmartApps run in a sandboxed environment, and including your own classes or jars is not supported.

http://smartthings.readthedocs.org/en/latest/introduction/groovy-the-smartthings-programming-language.html#groovy-sandboxing