Skip to content

InteropIO/finsemble-java-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Java Projects for Finsemble

Maven

The Finsemble Java library is available for use in a Maven pom.xml file:

https://search.maven.org/artifact/com.chartiq.finsemble/finsemble

You can build the JAR files and the launch4j executable file using the mvn package command.

Note: The executable generated by launch4j is experimental and may not work correctly. Reach out to [email protected] to receive Client Success support if you encounter difficulties.

Examples provided

  • JavaExample - Example JavaFX application
  • JavaSwingExample - Example Java Swing application
  • JavaHeadlessExample - Example of a window-less Java application
  • AuthenticationExample - Example component that performs authentication from within Java
  • MultiWindow - JavaSwingExample - Same as JavaSwingExample but running in multi-window (several windows running under the same process)
  • MultiWindow - AuthenticationExample - Same as AuthenticationExample but running in multi-window (several windows running under the same process)
  • InteropServiceExample - Example of JavaFX FDC3 Desktop Agent client

Configuring the Java examples

Copy the java-example.json included in the project to src/components/java-example/java-example.json. Update the application manifest to include:

    "finsemble": {
        ...,
        "custom": {
            "javaExampleJarRoot": "<path_to_the_jar_files_directory>"
        },
        "importConfig": [
            "../../configs/application/config.json",
            "../../configs/application/java-example.json"
        ]
    }

NOTE:

  • The java-example.json file includes two copies of the JavaFX example:
    • Java Example (local)
    • Java Example (asset).

The "local" component uses javaExampleRoot to specify the path to the JAR file on the local system. The "asset" component uses the appAsset to download and run the application - Please refer to our tutorial on integrating native applications for more details.