Tabnine Logo
System.exit
Code IndexAdd Tabnine to your IDE (free)

How to use
exit
method
in
java.lang.System

Best Java code snippets using java.lang.System.exit (Showing top 20 results out of 56,250)

origin: libgdx/libgdx

  public void windowClosed (WindowEvent event) {
    System.exit(0);
    // Gdx.app.quit();
  }
});
origin: libgdx/libgdx

  public void windowClosed (WindowEvent event) {
    System.exit(0);
    // Gdx.app.quit();
  }
});
origin: libgdx/libgdx

  public void windowClosed (WindowEvent event) {
    System.exit(0);
    // Gdx.app.quit();
  }
});
origin: libgdx/libgdx

  public void windowClosed (WindowEvent event) {
    System.exit(0);
    // Gdx.app.quit();
  }
});
origin: libgdx/libgdx

  public void run () {
    System.exit(exitCode);
  }
});
origin: libgdx/libgdx

  public void windowClosed (WindowEvent event) {
    System.exit(0);
  }
});
origin: libgdx/libgdx

  public void windowClosed (WindowEvent event) {
    System.exit(0);
  }
});
origin: libgdx/libgdx

  public void run () {
    System.exit(exitCode);
  }
});
origin: libgdx/libgdx

private void printExceptionAndExit (Exception e) {
  e.printStackTrace();
  System.exit(1);
}
origin: libgdx/libgdx

private void printExceptionAndExit (Exception e) {
  e.printStackTrace();
  System.exit(1);
}
origin: jenkinsci/jenkins

/** @see #remotePost */
public static void main(String[] args) {
  try {
    System.exit(run(args));
  } catch (Exception e) {
    e.printStackTrace();
    System.exit(-1);
  }
}
origin: jenkinsci/jenkins

public static void main(final String[] _args) throws Exception {
  try {
    System.exit(_main(_args));
  } catch (NotTalkingToJenkinsException ex) {
    System.err.println(ex.getMessage());
    System.exit(3);
  } catch (Throwable t) {
    // if the CLI main thread die, make sure to kill the JVM.
    t.printStackTrace();
    System.exit(-1);
  }
}
origin: libgdx/libgdx

  @Override
  public void run () {
    stop();
    System.exit(-1);
  }
});
origin: libgdx/libgdx

  public static void main (String[] args) throws Exception {
    if (args.length != 2) {
      System.out.println("ETC1Compressor <input-dir> <output-dir>");
      System.exit(-1);
    }
    ETC1Compressor.process(args[0], args[1], true, false);
  }
}
origin: libgdx/libgdx

  @Override
  public void run () {
    stop();
    System.exit(-1);
  }
});
origin: libgdx/libgdx

  public static void main (String[] args) throws Exception {
    if (args.length != 2) {
      System.out.println("ETC1Compressor <input-dir> <output-dir>");
      System.exit(-1);
    }
    ETC1Compressor.process(args[0], args[1], true, false);
  }
}
origin: libgdx/libgdx

  @Override
  public void actionPerformed(ActionEvent e) {
    dispose();
    System.exit(0);
  }
});
origin: libgdx/libgdx

private static Map<String, String> parseArgs (String[] args) {
  if (args.length % 2 != 0) {
    printHelp();
    System.exit(-1);
  }
  Map<String, String> params = new HashMap<String, String>();
  for (int i = 0; i < args.length; i += 2) {
    String param = args[i].replace("--", "");
    String value = args[i + 1];
    params.put(param, value);
  }
  return params;
}
origin: libgdx/libgdx

  @Override
  public void run () {
    LwjglCanvas.this.listener.pause();
    LwjglCanvas.this.listener.dispose();
    if (audio != null) audio.dispose();
    System.exit(-1);
  }
});
origin: libgdx/libgdx

  @Override
  public void run () {
    LwjglCanvas.this.listener.pause();
    LwjglCanvas.this.listener.dispose();
    if (audio != null) audio.dispose();
    System.exit(-1);
  }
});
java.langSystemexit

Javadoc

Causes the VM to stop running and the program to exit with the given exit status. If #runFinalizersOnExit(boolean) has been previously invoked with a true argument, then all objects will be properly garbage-collected and finalized first.

Popular methods of System

  • currentTimeMillis
    Returns the current time in milliseconds. Note that while the unit of time of the return value is a
  • getProperty
    Returns the value of a particular system property. The defaultValue will be returned if no such prop
  • arraycopy
  • setProperty
    Sets the value of a particular system property.
  • nanoTime
    Returns the current timestamp of the most precise timer available on the local system, in nanosecond
  • getenv
    Returns the value of the environment variable with the given name, or null if no such variable exist
  • getProperties
    Returns the system properties. Note that this is not a copy, so that changes made to the returned Pr
  • identityHashCode
    Returns an integer hash code for the parameter. The hash code returned is the same one that would be
  • getSecurityManager
    Gets the system security interface.
  • gc
    Indicates to the VM that it would be a good time to run the garbage collector. Note that this is a h
  • lineSeparator
    Returns the system's line separator. On Android, this is "\n". The value comes from the value of the
  • clearProperty
    Removes a specific system property.
  • lineSeparator,
  • clearProperty,
  • setOut,
  • setErr,
  • console,
  • loadLibrary,
  • load,
  • setSecurityManager,
  • mapLibraryName

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • setContentView (Activity)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • JPanel (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now