Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' into actor-yield
[simgrid.git] / examples / java / app / pingpong / Main.java
index baa07d8..2030da9 100644 (file)
@@ -10,10 +10,11 @@ import org.simgrid.msg.HostNotFoundException;
 import org.simgrid.msg.Msg;
  
 class Main {
+  protected static final int TASK_COUNT = 3;
+       
   private Main() {
     throw new IllegalAccessError("Utility class");
   }
-  protected static final int TASK_COUNT = 3;
 
   public static void main(String[] args) throws HostNotFoundException {
     Msg.init(args);
@@ -24,8 +25,8 @@ class Main {
     
     File f = new File(platfFile); 
     if (!f.exists()) {
-       System.err.println("File "+platfFile+" does not exist in "+System.getProperty("user.dir"));
-       System.err.println("Usage  : Main ../platforms/platform.xml");
+      Msg.error("File " + platfFile + " does not exist in " + System.getProperty("user.dir"));
+      Msg.error("Usage  : Main ../platforms/platform.xml");
     }
     
     Msg.createEnvironment(platfFile);