Search in sources :

Example 1 with UrlLauncher

use of net.i2p.apps.systray.UrlLauncher in project i2p.i2p by i2p.

the class RunStandalone method start.

public void start() {
    try {
        _jettyStart.startup();
        String url = "http://" + _host + ':' + _port + "/i2psnark/";
        try {
            Thread.sleep(1000);
        } catch (InterruptedException ie) {
        }
        UrlLauncher launch = new UrlLauncher(_context, null, new String[] { url });
        launch.startup();
    } catch (Exception e) {
        e.printStackTrace();
    }
}
Also used : UrlLauncher(net.i2p.apps.systray.UrlLauncher) IOException(java.io.IOException)

Aggregations

IOException (java.io.IOException)1 UrlLauncher (net.i2p.apps.systray.UrlLauncher)1