Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import java.io.File;
import java.io.IOException;

public class Main {
    public static File toolsJar() {
        final String jdkLocation = System.getProperty("java.home");
        final File javaHome = new File(jdkLocation);
        try {
            return new File(javaHome, "../lib/tools.jar").getCanonicalFile();
        } catch (final IOException e) {
            throw new RuntimeException(e);
        }
    }
}