Here you can find the source of classToPath(String name, boolean resource)
static String classToPath(String name, boolean resource)
//package com.java2s; //License from project: Open Source License public class Main { static String classToPath(String name, boolean resource) { boolean i18nClass = false; String propSuffix = ".properties"; if (name.startsWith("com.pari.client.Helper") || name.startsWith("com.pari.server.Helper")) { i18nClass = true;//from w w w . j av a2 s . c om } String classsuffix = ".class"; char oldChar = '.'; char newChar = '/'; name = name.replace(oldChar, newChar); if (i18nClass) { name = name + propSuffix; } else { if (!resource) { name = name + classsuffix; } } return name; } }