+

Search Tips   |   Advanced Search

 

Compiling an application in a non-OSGi environment using scripting

 

Use the wsadmin tool to use the thin administrative client to compile an application.

 

Overview

To use the thin administrative client JAR files to compile an application, perform the following steps:

 

Procedure

  1. Include the com.ibm.ws.admin.client_6.1.0.jar JAR file in the CLASSPATH.

  2. Compile the application.

 

Example

For example, the JAR file is located in the app_server_root/opt/resources directory and you want to compile the ThinAdminClientApplication.java file in the current directory. Use the following to compile the file:

export CLASSPATH=/opt/resources/com.ibm.ws.admin.client_6.1.0.jar:${CLASSPATH}
${JAVA_HOME}/bin/javac ThinAdminClientApplication.java



Use scripting (wsadmin)
Application client functions
Enabling trace on client and standalone applications
Start the wsadmin scripting client
Running the wsadmin tool remotely in a Java 2 Platform, Standard Edition environment