This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DSS Scripts - javascript source to java class file



Hello,

My DSS scripts are becoming unmanageable due to their length thus I'd like to place the common functionalities in a separate file.

I guess that means I need to compile a .class file (as seen here https://developer.mozilla.org/en/Rhino_JavaScript_Compiler) from my DSS javascript source so that U can reference the functions contained within after an importClass command at the top of my script.

Unfortunately, this fails (java.lang.ClassNotFoundException) since org.mozilla.javascript.tools.jsc.Main cannot be found.

Is there a particular way to do this in the DSS version?

Many thanks,

--

Joshua