Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package app;
- import java.awt.EventQueue;
- import java.io.IOException;
- public class Spustit {
- public static void main(String[] args) {
- if ((args.length != 0) && args[0].equals("xss_set")) {
- EventQueue.invokeLater(new Runnable() {
- public void run() {
- try {
- Okno frame = new Okno();
- frame.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- });
- } else {
- System.out.println("Není nastavená paměť! Nastavuji paměť a spouštím program znovu.");
- try {
- // TODO predat jmeno JAR souboru
- Runtime.getRuntime().exec("java -Xss16M -jar ./soubor.jar xss_set");
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment