Error with quantrix.openModel()

3.47K viewsScripting

I have tried to open a model with

I get the following error:
Error running script: Access denied
(java.lang.RuntimePermission setContextClassLoader)

The file name seems to be OK (I can reference the file with methods)

Is there something I am missing?



Thanks, Ben, for the prompt response.
I use 4.0.58 in Mac OSX.
I have done a modification to default.policy in com.subx.scripting.core_4.0.0.060246.jar in order to do some experiments with QDK from scripts. If I enable createClassLoader and getClassLoader I get the error: Access denied (java.lang.RuntimePermission setContextClassLoader). If I enable setContextClassLoader, openModel() loads the model, but then I get an unrecoverable error.

You are viewing 1 out of 3 answers, click here to view all answers.