클래스 로더


샘플 실행

서버 상호 작용이 필요하지 않고 구성이 필요하지 않은 독립형 샘플입니다.

샘플 실행

Class Loader 샘플은 간단한 명령행 애플리케이션입니다. 제공된 일괄처리 파일을 사용하여 이 샘플을 실행하십시오.

제공된 일괄처리 파일을 사용하여 Class Loader 샘플을 실행하려면 다음 단계를 완료하십시오.

  1. 명령 프롬프트를 여십시오.
  2. 현재 작업 디렉토리를 다음 디렉토리로 변경하십시오.
  3. classLoader를 실행하십시오.
  4. 애플리케이션을 시작할 때 애플리케이션 출력은 다음과 같이 나타나야 합니다.

    --------------------------------------------------------------
    Running ClassLoaderClientMain from the J2EEAppClientClassLoader.ear file
    --------------------------------------------------------------
    
    IBM WebSphere Application Server, 릴리스 8.0
    Java EE Application Client Tool
    Copyright IBM Corp., 1997-2009
    
    WSCL0012I: Processing command line arguments.
    WSCL0013I: Initializing the Java EE Application Client Environment.
    Debugging is set to false
    Loading the Security Configuration...
    WSCL0035I: Initialization of the Java EE Application Client Environment has completed.
    WSCL0014I: Invoking the Application Client class com.ibm.websphere.samples.j2eeappclients.classloader.ClassLoaderClientMain
    Beginning Test
    Attempting to load ClassLoaderClientJarTest
      Loaded: class com.ibm.websphere.samples.j2eeappclients.classloader.ClassLoaderClientJarTest
    Attempting to load ClassLoaderClientCommonJarTest
      Loaded: class com.ibm.websphere.samples.j2eeappclients.classloader.ClassLoaderClientCommonJarTest
    Attempting to load ClassLoaderClientEARTest
      Loaded: class com.ibm.websphere.samples.j2eeappclients.classloader.ClassLoaderClientEARTest
    Attempting to load ClassLoaderLocalTest
      Loaded: class com.ibm.websphere.samples.j2eeappclients.classloader.ClassLoaderLocalTest