2014년 6월 26일 목요일

[구로가산 오라클자바커뮤니티, 자바교육,JAVA기초학원추천,JAVA개발자교육,자바클래스패스]SYSTEM CLASSLOADER를 이용하여 클래스패스 경로(CLASSPATH URL)가지고 오기[오라클자바커뮤니티 자바강좌]

[구로가산 오라클자바커뮤니티, 자바교육,JAVA기초학원추천,JAVA개발자교육,자바클래스패스]SYSTEM CLASSLOADER를 이용하여 클래스패스 경로(CLASSPATH URL)가지고 오기[오라클자바커뮤니티 자바강좌]
 
package onj;
 
import java.net.URL;
import java.net.URLClassLoader;
public class PClass {
    public static void main(String[] args) {
        ClassLoader loader = ClassLoader.getSystemClassLoader();
       
        //클래스패스 URL을 가지고 옵니다.
        URL[] classPathUrls = ((URLClassLoader)loader).getURLs();
        for(int i=0; i< classPathUrls.length; i++)
        {
            System.out.println(classPathUrls[i].getFile());
        }      
    }
}
 
 
[결과]
/C:/java/project/onj/bin/
/C:/java/lib/antlr-2.7.7.jar
/C:/java/lib/aopalliance.jar
/C:/java/lib/aspectjrt.jar
/C:/java/lib/aspectjweaver.jar
/C:/java/lib/commons-collections-3.0.jar
/C:/java/lib/commons-dbcp.jar
/C:/java/lib/commons-digester.jar
/C:/java/lib/commons-lang3-3.1.jar
/C:/java/lib/commons-logging.jar
/C:/java/lib/commons-logging-1.0.4.jar
/C:/java/lib/commons-pool.jar
/C:/java/lib/cos.jar
/C:/java/lib/dom4j-1.6.1.jar
/C:/java/lib/hibernate3.jar
/C:/java/lib/hibernate-commons-annotations-4.0.2.Final.jar
/C:/java/lib/hibernate-core-4.2.3.Final.jar
/C:/java/lib/hibernate-jpa-2.0-api-1.0.1.Final.jar
/C:/java/lib/javassist-3.15.0-GA.jar
/C:/java/lib/jboss-logging-3.1.0.GA.jar
/C:/java/lib/jboss-transaction-api_1.1_spec-1.0.1.Final.jar
/C:/java/lib/jcl-over-slf4j-1.7.5.jar
/C:/java/lib/jsp-api.jar
/C:/java/lib/jsr250-api.jar
/C:/java/lib/jstl.jar
/C:/java/lib/log4j-1.2.17.jar
/C:/java/lib/log4j-api-2.0-beta7.jar
/C:/java/lib/mybatis-3.1.0.jar
/C:/java/lib/mybatis-3.2.2.jar
/C:/java/lib/mybatis-spring-1.2.0.jar
/C:/java/lib/ojdbc6.jar
/C:/java/lib/ojdbc14.jar
/C:/java/lib/servlet-api.jar
/C:/java/lib/simplefan.jar
/C:/java/lib/slf4j-api-1.7.5.jar
/C:/java/lib/slf4j-log4j12-1.7.5.jar
/C:/java/lib/spring-aop-3.2.3.RELEASE.jar
/C:/java/lib/spring-aspects-3.2.3.RELEASE.jar
/C:/java/lib/spring-beans-3.2.3.RELEASE.jar
/C:/java/lib/spring-build-src-3.2.3.RELEASE.jar
/C:/java/lib/spring-context-3.2.3.RELEASE.jar
/C:/java/lib/spring-context-support-3.2.3.RELEASE.jar
/C:/java/lib/spring-core-3.2.3.RELEASE.jar
/C:/java/lib/spring-__EXPRESSION__-3.2.3.RELEASE.jar
/C:/java/lib/spring-instrument-3.2.3.RELEASE.jar
/C:/java/lib/spring-instrument-tomcat-3.2.3.RELEASE.jar
/C:/java/lib/spring-jdbc-3.2.3.RELEASE.jar
/C:/java/lib/spring-jms-3.2.3.RELEASE.jar
/C:/java/lib/spring-orm-3.2.3.RELEASE.jar
/C:/java/lib/spring-oxm-3.2.3.RELEASE.jar
/C:/java/lib/spring-struts-3.2.3.RELEASE.jar
/C:/java/lib/spring-test-3.2.3.RELEASE.jar
/C:/java/lib/spring-tx-3.2.3.RELEASE.jar
/C:/java/lib/spring-web-3.2.3.RELEASE.jar
/C:/java/lib/spring-webmvc-3.2.3.RELEASE.jar
/C:/java/lib/spring-webmvc-portlet-3.2.3.RELEASE.jar
/C:/java/lib/standard.jar
 




오라클자바커뮤니티교육센터, 개발자전문교육, 개인80%환급
www.oraclejavacommunity.com


평일주간(9:30~18:10) 개강
(6/30)[기업100%환급]PL/SQL,ORACLE HINT,TUNING[개강확정]
(6/30)[기업100%환급]안드로이드개발자과정[개강확정]
(6/30)[기업100%환급]SQL기초에서 Schema Object까지[개강확정]
(7/07)[기업100%환급]C#4.0,WinForm,ADO.NET프로그래밍
(7/07)[기업100%환급]Spring ,MyBatis,Hibernate실무과정[개강확정]
(7/07)[기업100%환급]자바기초에서 JDBC, Servlet/JSP까지 
(7/07)[채용예정교육]오라클자바개발잘하는신입뽑기프로젝트,교육전취업확정

평일야간(19:00~21:50) 개강
(7/01)안드로이드개발자과정[개강확정]
(7/01)닷넷(C#,Network,ADO.NET,ASP.NET)마스터과정
(7/02)Spring3.X, MyBatis, Hibernate실무과정[개강확정]
(7/02)자바웹(JSP,Spring,MyBatis,XPlatform)프로젝트과정
(7/02)JAVA,Network&WEB&Framework(자바기초에서웹스프링까지)
(7/03)웹퍼블리싱 마스터
(7/15)SQL기초에서실무까지
(7/15)MyBatis3.X, Hibernate4.X ORM실무과정
(7/22)자바기초에서JSP,Ajax,jQuery,Spring3.2,MyBatis까지

주말(10:00~17:50) 개강
(6/28)Spring3.X, MyBatis, Hibernate실무과정[개강확정]
(6/28)안드로이드개발자과정
(6/29)자바기초에서JSP,Ajax,jQuery,Spring3.2,MyBatis까지[개강확정]
(7/05)SQL초보에서 Schema Object까지
(7/12)자바웹(JSP,Spring,MyBatis,XPlatform)프로젝트과정
(7/12)MyBatis3.X, Hibernate4.X ORM실무과정
(7/12)개발자를위한PLSQL,SQL튜닝,힌트
(7/12)실무예제로 배워보는 jQuery(개발자/디자이너를위한)
(7/13)C#,ASP.NET마스터

주말저녁(18:30~22:20) 개강
(6/28)JAVA,Network&WEB&Framework
(6/28)SQL기초에서실무까지

댓글 없음:

댓글 쓰기