Java Root Path Get getRootPathName()

Here you can find the source of getRootPathName()

Description

get Root Path Name

License

Open Source License

Declaration

public static String getRootPathName() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.File;

public class Main {

    public static String getRootPathName() {
        //      String rootPath = Application.getActiveApplication().getClass().getProtectionDomain().getCodeSource().getLocation().getPath();
        //      rootPath = getParentPath(rootPath);
        //      rootPath += "Bin/";
        //      return rootPath;
        return System.getProperty("user.dir") + File.separator + "bin";
    }/*  w ww . j a  v  a  2 s  .  c  o m*/
}

Related

  1. getRootName(String pathname)
  2. getRootPath()
  3. getRootPath()
  4. getRootPath()
  5. getRootPath(String testDir)