Introduction > Getting Started > Running a Compiled Model File as a Batch Job from the Desktop

Running a Compiled Model File as a Batch Job from the Desktop
Right-click Job Sequences in a study and add a study. In the added study, right-click and add External Class under Other. Then right-click the batch sequence and select Compute.
Runs the main function of a compiled class with the system property cs.currentmodel set to the tag of the model calling the class. Thus you can retrieve the current model using the steps:
import java.io.*;
 
tag = System.getProperty("cs.currentmodel");
model = ModelUtil.model(tag);