// Module included in the following assemblies:
//
// * cli_reference/developer_cli_odo/using-sample-applications.adoc

[id="odo-sample-applications-binary_{context}"]
= Binary example applications

Use the following commands to build and run sample applications from a binary file for a particular runtime.

[id="odo-sample-applications-binary-java_{context}"]
== java

Java can be used to deploy a binary artifact as follows:

[source,terminal]
----
$ git clone https://github.com/spring-projects/spring-petclinic.git
----

[source,terminal]
----
$ cd spring-petclinic
----

[source,terminal]
----
$ mvn package
----

[source,terminal]
----
$ odo create java test3 --binary target/*.jar
----

[source,terminal]
----
$ odo push
----
