Importing Code Using Terminal
Here are the steps for importing code using Terminal:
- 
Open Terminal. From the Windows System Tray, click the cube and then click Terminal on the menu. 
- 
Verify that Terminal is pointed at the correct namespace. In this case, we want the USER namespace. If necessary, use the zn command to change namespaces. SAMPLES>zn "user" USER>
- 
Use the $SYSTEM.OBJ.Load method to load the classes contained in an XML file into Caché and compile them. USER>Write $SYSTEM.OBJ.Load("C:\InterSystems\Cache\Dev\tutorials\security\Zen_Authenticate.xml","ck") Load started on 04/20/2011 10:27:15 Loading file C:\InterSystems\Cache\Dev\Tutorials\security\Zen_Authenticate.xml as xml Imported class: SecurityTutorial.Application Imported class: SecurityTutorial.CreateDelegatedUsers Imported class: SecurityTutorial.HomePage Imported class: SecurityTutorial.LogIn, compiling 4 classes Compiling class SecurityTutorial.Application Compiling class SecurityTutorial.CreateDelegatedUsers Compiling class SecurityTutorial.HomePage Compiling class SecurityTutorial.LogIn Compiling routine SecurityTutorial.Application.1 Compiling routine SecurityTutorial.CreateDelegatedUsers.1 Compiling routine SecurityTutorial.HomePage.1 Compiling routine SecurityTutorial.LogIn.1 Load finished successfully. 1 USER>Note that the ck argument causes the loaded classes to be compiled and any generated source code to be saved.