Gluon Client Samples

Java and JavaFX samples to run with GraalVM and the Gluon Client plugins for Maven.

The following platforms are currently supported:

Build and run the samples

Requirements

Mac OS X and iOS

Linux and Android

Windows

Build using Maven

HelloWorld, HelloFX, HelloFXML and HelloGluon samples

The following goals apply to Linux, Mac OS X and Windows.

To build the native image:

mvn clean client:build

To run the native image:

mvn client:run

or simply run the native executable found in target/client.

Build and run the samples on iOS

Additional requirements

Using brew:

brew install --HEAD libusbmuxd

Using brew:

brew install --HEAD libimobiledevice

Build using Maven

HelloWorld, HelloFX, HelloFXML and HelloGluon samples

<artifactId>client-maven-plugin</artifactId>
<configuration>
    <target>ios</target>
    <mainClass>${mainClassName}</mainClass>
</configuration>
mvn clean client:build
mvn client:run
mvn client:package

Note: Since all java bytecode is translated to native code, the compilation step can take a long time, and it requires a fair amount of memory.

Note: In order to deploy apps to an iOS device, you need a valid iOS provisioning profile, as explained in the documentation.

Build and run the samples on Android

Additional requirements

The client plugin will download the Android SDK and install the required packages. Alternatively, you can define a custom location to the Android SDK by setting the ANDROID_SDK environment variable, making sure that you have installed all the packages from the following list:

Build using Maven

HelloWorld, HelloFX, HelloFXML and HelloGluon samples

<artifactId>client-maven-plugin</artifactId>
<configuration>
    <target>android</target>
    <mainClass>${mainClassName}</mainClass>
</configuration>
mvn clean client:build
mvn client:package
mvn client:install
mvn client:run

Note: Since all java bytecode is translated to native code, the compilation step can take a long time, and it requires a fair amount of memory.

Issues and Contributions

Issues can be reported to the Issue tracker

Contributions can be submitted via Pull requests, providing you have signed the Gluon Individual Contributor License Agreement (CLA) (See What is a CLA and why do I care in case of doubt).