public static String classNamePath(String className){
  String filename=className.replace(".",File.separator);
  filename=filename.replaceFirst("[$][0-9]+","");
  if (filename.indexOf("$") > 0) {
    filename=filename.substring(0,filename.indexOf("$"));
  }
  return "src" + File.separator + filename+ ".java";
}

public static String classNamePath ( String className ) { String filename = className . replace ( "." , File . separator ) ; filename = filename . replaceFirst ( "[$][0-9]+" , "" ) ; if ( filename . indexOf ( "$" ) > 0 ) { filename = filename . substring ( 0 , filename . indexOf ( "$" ) ) ; } return "src" + File . separator + filename + ".java" ; }
returns the relative path for a fully qualified classname . adds " src / " before the pathname for the class . strips away internal class names .
