All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tiogasolutions.notify.server.grizzly.NotifyServerLauncher Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
package org.tiogasolutions.notify.server.grizzly;

import java.net.URL;

public class NotifyServerLauncher {

  public static void main(String...args) throws Throwable {
    URL location = NotifyServer.class.getProtectionDomain().getCodeSource().getLocation();
    System.out.println("Starting application from " + location);

    if (location.getPath().endsWith(".jar")) {
      JarClassLoader jcl = new JarClassLoader();
      jcl.invokeStart(NotifyServer.class.getName(), args);

    } else {
      NotifyServer.main(args);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy