Skip to content.
SHIVA > DOC > ShivaConfiguration > StartConfigure
In shiva.Main class, there are two global class variables START_RC and GUI_RC which can be changed to point to different resource file locations before shiva.Main's main funciton is called. Thus, to have a completely different set of configurations w/o touching the SHIVA core, you can do the something like below:

/*
 *
 * $Id: StartConfigure.txt,v 1.1 2006/01/06 23:15:41 HengYuan Exp www $
 *
 */
package trogdor;

/**
 * @author Heng Yuan
 * @version $Revision: 1.1 $
 */
public class Main
{
   public static String STARTUP_RC = "trogdor/resources/start.xml";
   public static String GUI_RC = "trogdor/resources/shivagui.xml";

   public static void main (String[] args) throws Exception
   {
      shiva.Main.STARTUP_RC = STARTUP_RC;
      shiva.Main.GUI_RC = GUI_RC;
      shiva.Main.main (args);
   }
}