Skip to content

User Guide: Managing JAR Files

Managing JAR Files

This section describes procedures for managing JAR files in Volt MX Foundry. The following procedures explain how to import, update, and delete JAR files.

Importing a New JAR File

To import a new JAR file, do the following:

  1. In API Management, click Custom Code.
  2. Click the Add New button.
  3. In the Import JAR File window, do either of the following:

    • Drag and drop the JAR file directly into the window.
    • Click on Browse to add the JAR from the file directory.

    Important: Make sure that you upload a JAR file that is built using the same JDK version that you use for installing Volt MX Foundry.

  4. Click to close the JAR Imported Successfully notification.

Note:
1) Archives are blocked if JAR contains embedded server-side or executable script files that could execute unsafe code.
Restricted uploads
JAR is blocked if it contains: .sh, .bat, .py, .rb, .php, .pl, .cgi, .cmd, .ps1, .groovy
2) JAR file names must not contain multiple file extensions. The following extensions are restricted.
js, zip, war, apk, ipa, appx, xap, jsp, jspx, sh, bat, py, rb, php, pl, cgi, cmd, ps1, groovy, html, htm, xhtml, xml, json, css, txt, md, csv, svg
3) The maximum file upload size for on-premises is 4GB.

Updating a JAR File

To update a new version of an existing JAR file, do the following:

  1. In API Management, under Custom Code, click on the JAR file that you want to update.
  2. Click Update.
  3. In the Update JAR File window, do either of the following:

    • Drag and drop the JAR file directly into the window.
    • Click on Browse , select the JAR from your file directory, and click Open.

    Important: Make sure that you upload a JAR file that is built using the same JDK version that you use for installing Volt MX Foundry.

    Note: Archives are blocked if JAR contains embedded server-side or executable script files that could execute unsafe code.

    Restricted uploads

    JAR is blocked if it contains.sh, .bat, .py, .rb, .php, .pl, .cgi, .cmd, .ps1, .groovy

Deleting a JAR File

To delete a JAR file that is not needed, do the following:

  1. In API Management, under Custom Code, click on the JAR file that you want to delete.
  2. In Associated Services, if there are associated services listed, click on the service and then click Unlink.
  3. After all associated services are removed, click Delete to remove the JAR file.