Skip to content

Home

Development

IDEs

JAR services

API Explorer

Using JARs to import third party code

Starting Martini Runtime v1.3, you can drag and drop services from JAR files into your Gloop services. Effectively, this means you can easily use third party code to build your services and applications.

Importing a JAR file

Importing a JAR file

To get started, you will need your JAR file. To import, drag and drop the file to your Martini package's lib directory. After importing, reload your package. A package reload is needed in order to add the JAR classes to the class path. After a successful reload, you may browse and invoke services from your JAR.

Browsing services inside a JAR file

Browsing services inside a JAR file

To invoke a service from your JAR, navigate to the JAR service (or method) you want to invoke. Invocable methods consist of public static methods, and public instance methods of classes with public nullary constructors.

Invoking a JAR services from a Gloop service

Invoking a JAR services from a Gloop service