Skip to content

wmartinmimi/browserlauncher4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

browserlaunch4j

Description

A simple library for launching a default user browser. Useful for making web apps.

Webpage: https://wmartinmimi.github.io/projects/browserlauncher4j/

Example code

package com.example;

import io.github.wmartinmimi.browserlauncher4j.BrowserLauncher;

import java.net.URI;
import java.net.URISyntaxException;

public class BrowserLauncherTest {
    public static void main(String[] args) throws URISyntaxException {
        BrowserLauncher.launchBlocking(new URI("https://example.com"));
    }
}

For more examples see BrowserLauncherTest

Add as dependency

Maven pom.xml

<dependency>
    <groupId>io.github.wmartinmimi</groupId>
    <artifactId>browserlauncher4j</artifactId>
    <version>1.0.1</version>
</dependency>

Gradle

implementation group: 'io.github.wmartinmimi', name: 'browserlauncher4j', version: '1.0.1'

Gradle (short)

implementation 'io.github.wmartinmimi:browserlauncher4j:1.0.1'

Gradle (kotlin)

implementation("io.github.wmartinmimi:browserlauncher4j:1.0.1")

For other build systems see here.

Running and testing

For library testing

mvn test

For installing to local maven repository

mvn clean install

License

Licensed under MIT License.

About

A simple java library for launching a default browser.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages