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

es.iti.wakamiti.launcher.JarUtil Maven / Gradle / Ivy

There is a newer version: 2.6.3
Show newest version
/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
 */

package es.iti.wakamiti.launcher;

import java.net.URISyntaxException;
import java.nio.file.Path;
import java.nio.file.Paths;

public class JarUtil {

    public static Path jarFolder() throws URISyntaxException {
        return Paths.get(
            WakamitiLauncher.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath()
        ).getParent();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy