/capstan-example-java

Capstan example project for Java applications

Primary LanguageJava

Capstan Java example project

This is an example Capstan project for building and running Java applications on OSv.

To try it out, first install Capstan:

curl https://raw.githubusercontent.com/cloudius-systems/capstan/master/scripts/download | bash

If you're running on Linux, Capstan will use QEMU/KVM as the default hypervisor and on OS X, it will use VirtualBox.

Next step, clone this repository:

git clone git@github.com:cloudius-systems/capstan-example-java.git

two alternatives to run the application, with or without Capstanfile

  • Using a Capstanfile
capstan run 
  • Using a Jar file directly using Apache Maven, without a Capstanfile
mvn package

Run Capstan with the result Jar file as parameter:

capstan run target/capstan-example-java-1.0-SNAPSHOT.jar

That's it!