Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Acknoledge the fact that JniException is a runtime exception now: kill all its occure...
[simgrid.git] / examples / java / basic / BasicTest.java
index 6cea858..89921ae 100644 (file)
@@ -1,8 +1,5 @@
 /*
- * $Id$
- *
- * Copyright 2006,2007 Martin Quinson, Malek Cherier         
- * All rights reserved. 
+ * Copyright 2006,2007,2010. The SimGrid Team. All rights reserved. 
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. 
@@ -17,10 +14,10 @@ public class BasicTest {
     * which also contains such a launcher
     */
    
-    public static void main(String[] args) throws JniException, NativeException {
+    public static void main(String[] args) throws NativeException {
        
-       /* initialize the MSG simulation. Must be done before anything else (even logging). */
-       Msg.init(args);
+       /* initialize the MSG simulation. Must be done before anything else (even logging). */
+       Msg.init(args);
 
        if(args.length < 2) {
                
@@ -29,11 +26,6 @@ public class BasicTest {
          System.exit(1);
        }
                
-       /* specify the number of channel for the process of the simulation. */
-       Channel.setNumber(1);
-        /* specify a paje output file. */
-        Msg.pajeOutput("basic.trace");
-               
        /* construct the platform and deploy the application */
        Msg.createEnvironment(args[0]);
        Msg.deployApplication(args[1]);