Here you can find the source of packageToPath(String pkg)
public static String packageToPath(String pkg)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w . j a v a2 s .co m*/ * @return a path derived from the passed in package. */ public static String packageToPath(String pkg) { return "src/main/java/" + pkg.replace(".", "/"); } }