Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.32 KB

java-main.md

File metadata and controls

25 lines (18 loc) · 1.32 KB

Java Main Push

The Java Main container allows a Java application (jar) that contains a class with a main() method to be run.

Usage

To deploy Java Main applications using the IBM WebSphere Application Server Liberty Buildpack, you are required to accept the IBM JRE license by following these instructions:

  1. Read the current IBM JVM-License.

  2. Extract the D/N: <License code> from the JVM-License.

  3. Add the environment variable in the code example, and the extracted license code, to the manifest.yml file in the directory from which you push your application. For more information on the format of the manifest.yml file, see manifest documentation.

      env:
        IBM_JVM_LICENSE: <jvm license code>
    

After you have set the license acceptance environment variables, use the following command to deploy the application with the IBM WebSphere Application Server Liberty Buildpack:

cf push <APP-NAME> -p <ARTIFACT> -b https://github.com/cloudfoundry/ibm-websphere-liberty-buildpack.git --no-route