Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 930 Bytes

README.md

File metadata and controls

41 lines (27 loc) · 930 Bytes

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!