Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
java examples: make it easier to run them from the cmdline or from eclipse
[simgrid.git] / examples / java / app / pingpong / Main.java
index 31e4c70..baa07d8 100644 (file)
@@ -23,8 +23,10 @@ class Main {
        platfFile = args[0];
     
     File f = new File(platfFile); 
-    if (!f.exists())
+    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.createEnvironment(platfFile);
     new Sender("Jacquelin", "Sender", new String[] {"Boivin"}).start();