Error with quantrix.openModel()

3.47K viewsScripting
0

I have tried to open a model with
quantrix.openModel(model_file_full_path_name)

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 Java.io.file methods)

Is there something I am missing?

Thanks

0

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.