Eclipse will launch the applet viewer on the subclass of Applet that it finds in your project. The Startup class must include a Configure method and can optionally include a ConfigureServices method, both of which are called when the application starts. You can create another part of the same class in another file in your project. Call those methods from the template. In this way, the template shows you more clearly what the target output string will look like.