When an application based on a NetBeans Platform is run, the NetBeans Platform's Main class is run. It then finds the available modules and builds an in-memory registry of them, and performs any tasks they specify for startup. Generally, a module's code is loaded into memory as it is needed.