Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1002 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 1002 Bytes

OSGiAOT

POC for OSGi Connect Native Builds.

   

Content

  1. ./greeting
    A simple OSGi application using Declarative Services.

Prerequisites

  1. Install GraalVM CE Java 11 and Native Image gu install native-image
  2. Clone Atomos to local directory and install
    cd [local directory]
    ./mvnw clean install -Psubstrate

Build

  1. Clone OSGiAOT to local directory
  2. cd [local directory]
  3. Build ./mvnw clean package

Run Java App

  1. Run greeting uber-jar
    java -jar ./greeting/greeting.launch/target/run.jar
  2. Test by entering hello [name] and hallo [name]

Run Native App

  1. Run greeting uber-jar
    ./greeting/greeting.native/target/native_image_build/[random]/bin/greeting-native
  2. Test by entering hello [name] and hallo [name]