以下に示すように:
<span style = "font-size:18px"> system.out.println( "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"); string path = system.getProperty( "java.class.path"); string path2 = freemarkerwriter.class.getProtectionDomain()。getCodesource()。getLocation()。getPath(); string path3 = freemarkerwriter.class.getProtectionDomain()。getCodesource()。getLocation()。getFile(); string path4 = thread.currentthread()。getContextClassLoader()。getResource( "")。getPath(); system.out.println( "path 1 =" + path); System.out.println( "path 2 =" + path2); System.out.println( "path 3 =" + path3); System.out.println( "path 4 =" + path4); System.out.println( "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ </span>
JavaでClassPath ClassPathを取得するための上記の簡単な方法(推奨)は、私があなたと共有するすべてのコンテンツです。参照を提供できることを願っています。wulin.comをもっとサポートできることを願っています。