package org.moonlightcontroller.main;

import java.io.IOException;

import org.moonlightcontroller.controller.MoonlightController;
import org.moonlightcontroller.registry.ApplicationRegistry;
import org.moonlightcontroller.registry.IApplicationRegistry;
import org.moonlightcontroller.topology.ITopologyManager;
import org.moonlightcontroller.topology.TopologyManager;

public class Main {
	public static void main(String[] args) throws IOException {
		
		int server_port = 0;
		if (args.length > 0){
		    try {
		    	server_port = Integer.parseInt(args[0]);
		    } catch (NumberFormatException e) {
		        System.err.println("Argument" + args[0] + " must be a vaild port number.");
		        System.exit(1);
		    }
		}
		
		IApplicationRegistry reg = new ApplicationRegistry();
		reg.loadFromPath("/home/tilon/Workspace/Moonlight/ml-temp/src/main/resources/apps");
		
		ITopologyManager topology = TopologyManager.getInstance();
		MoonlightController mc = new MoonlightController(reg, topology, server_port);
		mc.start();
		return;
	}
}

package org.moonlightcontroller.main;

import java.io.IOException;

import org.moonlightcontroller.controller.MoonlightController;
import org.moonlightcontroller.registry.ApplicationRegistry;
import org.moonlightcontroller.registry.IApplicationRegistry;
import org.moonlightcontroller.topology.ITopologyManager;
import org.moonlightcontroller.topology.TopologyManager;

public class Main {
	public static void main(String[] args) throws IOException {
		
		int server_port = 0;
		if (args.length > 0){
		    try {
		    	server_port = Integer.parseInt(args[0]);
		    } catch (NumberFormatException e) {
		        System.err.println("Argument" + args[0] + " must be a vaild port number.");
		        System.exit(1);
		    }
		}
		
		IApplicationRegistry reg = new ApplicationRegistry();
		reg.loadFromPath("./apps");
		
		ITopologyManager topology = TopologyManager.getInstance();
		MoonlightController mc = new MoonlightController(reg, topology, server_port);
		mc.start();
		return;
	}
}

Fix apps path for experiment
Fix apps path for experiment
