public static void init(){
		if(initialized) {System.err.println("Init done"); return; }
		//System.err.println("Doing init");
		
		initialized=true;
		t = get_t();
		
		// Get OS if that is important
		if(isWindows()){
			_SYS = OS.WIN;
		}else if(isMac()){
			_SYS = OS.MAC;
		}else if(isUnix()){
			_SYS = OS.LIN;
		}else{
			_SYS = OS.ALT;
		}
	
		// Load main properites
		Properties props = new Properties();

        //try retrieve data from file
			try {
				props.load(new FileInputStream(propertiesBase));
				mainDB = props.getProperty("mainDB");
				_repository 		= props.getProperty("Repository");
				if(_repository.contains("$CURRENTDIR$")){
					_repository = _repository.replace("$CURRENTDIR$", _currentDir);
				}			
				LoadFromRepo = Integer.parseInt(props.getProperty("loadFromRepo")) == 1 ? true : false;
				RECOMPUTE_SCENARIOS = Integer.parseInt(props.getProperty("recomputeScenarios")) == 1 ? true : false; 
				StrategyDB = _repository + "\\" + props.getProperty("StrategyDB");

//				LoadFromDB = Integer.parseInt(props.getProperty("loadFromDB")) == 1 ? true : false;
//				StoreInDB = Integer.parseInt(props.getProperty("storeInDB")) == 1 ? true : false;
//				LoadFromRepo = Integer.parseInt(props.getProperty("loadFromRepo")) == 1 ? true : false;
				_JPPF_EXEC = Integer.parseInt(props.getProperty("useJPPF")) == 1 ? true : false; 
			}catch(Exception e){
				e.printStackTrace();
				logger.error("Fatal Error: Problem loading properties - init():" +  e);
				System.exit(1);
			}
			
		//System.err.println("_repository:" + _repository);
			
	
		
	}