/** * Returns application name that is the name of the main class derived from runtime stack. * * @return application name that is the name of the main class derived from runtime stack. */ static String appNameFromRuntime() { Class<?> main = mainClass(); String name = appNameFromJar(main); return name != null ? name : appNameFromClassName(main); }
/** * Returns application name that is the name of the main class derived from runtime stack. * * @return application name that is the name of the main class derived from runtime stack. */ static String appNameFromRuntime() { Class<?> main = mainClass(); String name = appNameFromJar(main); return name != null ? name : appNameFromClassName(main); }