Published on InterSystems Developer Community (https://community.intersystems.com)

Home > load and compile from java

Question
Suman Samanta · Mar 22, 2022

load and compile from java

Hi i am trying to load and compile one class from java . I am following this code. I am using iris 2021.2

 

             irisConnection = (IRISConnection) DriverManager
                     .getConnection("jdbc:IRIS://10.20.30.40:51773/MYNAMESPACE", "username", "password");
             iris = IRIS.createIRIS(irisConnection);
             iris.classMethodStatusCode("%SYSTEM.OBJ", "Load", "/filePath/SumanPramodTest.test3.CLS.xml","/displaylog=0 /displayerror=0");

 

When i am passing cuk  or ck in qspec param , i am getting error . but when i pass "/displaylog=0 /displayerror=0" it does not throw an error but does not compile the class too. 

 

Any leads would be of great help  .

#InterSystems IRIS

Source URL:https://community.intersystems.com/post/load-and-compile-java