You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Java Main Class Container allows an application that provides a class with a main() method to be run. The application is executed with a command of the form:
./java/bin/java -cp . com.gopivotal.SampleClass
Command line arguments may optionally be configured.
Detection Criteria
Main-Class attribute set in META-INF/MANIFEST.MF or java_main_class set in [`config/main.yml`][main_yml]
Tags
java-main
Tags are printed to standard output by the buildpack detect script
Configuration
The container can be configured by modifying the config/main.yml file.
Name
Description
arguments
Optional command line arguments to be passed to the Java main class. The arguments are specified as a single YAML scalar in plain style or enclosed in single or double quotes.
java_main_class
The Java class name to run. Values containing whitespace are rejected with an error, but all others values appear without modification on the Java command line. If not specified, the Java Manifest value of Main-Class is used.