package org.interonet.ldm;

import org.interonet.ldm.Core.LDMAgent;
import org.interonet.ldm.Core.LDMCore;
import org.interonet.ldm.WebService.RPCServer;

import java.util.logging.Logger;

public class Main
{
    public static void main( String[] args )  {
//        if(!System.getProperty("user.name").equals("root")) {
//            System.out.println("Root Permission Check Failed.");
//            System.exit(1);
//        }
        Logger ldmMainLogger = Logger.getLogger("ldmMainLogger");
        ldmMainLogger.info( "Starting InterONet LDM" );
        LDMCore ldmCore = new LDMCore();
        ldmCore.start();

        ldmMainLogger.info("Starting InterONet LDM RPC Server");
        LDMAgent ldmAgent = ldmCore.getAgent();
        RPCServer ldmRPCServer = new RPCServer(ldmAgent);
        ldmRPCServer.start();
    }
}

@@ -250,18 +250,16 @@
 gs )  %7B%0A
-//
         
@@ -312,18 +312,16 @@
 ot%22)) %7B%0A
-//
         
@@ -377,18 +377,16 @@
 led.%22);%0A
-//
         
@@ -409,10 +409,8 @@
 1);%0A
-//
     

add root permission check.