The Java plugin provides convenience utilities to work with Java applications deployed on Cloud Foundry.
You have installed the Cloud Foundry command line interface (cf CLI). See: Download and Install the cf CLI
-
Open the command line interface or terminal.
-
Check if you already have the Java plugin installed. Run:
cf pluginsIf the
javaplugin is installed, you have to uninstall it first. Run:cf uninstall-plugin java -
Before installing the latest available version of the plugin, make sure you have the Cloud Foundry community repository in your cf CLI.
If it is not available there, you need to add it. Run:
cf add-plugin-repo CF-Community https://plugins.cloudfoundry.org -
Install the latest Java plugin version. Run:
cf install-plugin -r CF_Community javaIn case the latest version is not available in the Cloud Foundry community repository, you can perform a manual installation:
-
Download the binary file for your target operating system from the latest release.
-
If you've already installed the plugin and you're now updating it, run:
cf uninstall-plugin java -
Now install the plugin. Run:
cf install-plugin [cf-cli-java-plugin]Note: Replace
[cf-cli-java-plugin]with the actual binary name you'll use, which depends on your operating system.
-
-
Verify that the plugin has been installed successfully. Run:
cf plugins
You see a list of cf CLI plugins that now includes the java one. The output also displays commands that are specific to this plugin.