Skip to main content

JAVA Plugins

UPDATED: | POSTED: | by Stefan Schüttenkopf

Welcome to the Introduction to Java Plugin Samples page! Here, developers can explore a diverse range of Java plugins, from foundational templates to specialized plugins like weather plugins (coming soon!). This resource is designed to assist developers in understanding how to create and implement plugins for various applications using Java.

What You Will Find

  1. Overview: Learn the basics of plugin development with a step-by-step guide to creating a template plugin. This section is perfect for beginners who want to understand the core structure and functionality of Java plugins.
  2. Sample Code: Access sample code that demonstrates how to set up a basic plugin, including necessary configurations and boilerplate code.
  3. Tutorials: Follow detailed tutorials that explain each step of the development process, from setting up your development environment to deploying your plugin.

Whether you're a novice looking to start your journey in Java plugin development or an experienced developer seeking specific solutions, this page offers valuable resources to enhance your skills and expand your toolkit. Dive in and start building powerful plugins today!

Start of MAE plugin development

  • Download and unpack the JDK version compatible with the one currently used by MAE from https://jdk.java.net/archive/
  • Download the Eclipse Installer 2025‑03 R from https://eclipseide.org/
  • Run the Eclipse Installer executable and install Eclipse IDE for Java Developers
    • Set the downloaded JDK as Java VM
  • Launch Eclipse IDE with a new workspace>
  • Make sure WindowPreferencesJavaInstalled JREs contains the downloaded JDK as default (should happen automatically if the Java VM was set as recommended during the installation). If not, then add it and set it as default.
📁
Download here the TemplateProject.zip
⚠️
Make sure the JRE System Library is mapped to the downloaded JDK (the mapping is done automatically if the downloaded JDK was set as default).

Create your own plugin

  • Import the unpacked TemplateProject:

    FileImportGradleExisting Gradle project

  • Have a look at the Demo Plugin:

    src\main\java\com\hexgeo\enterprise\sdk\sample\DemoPlugin.java

    src\main\resources\META-INF\services\com.hexgeo.enterprise.core.kernel.api.v1.Plugin

  • Create a new Run Configuration with the following setup

FAQ

org.gradle.tooling.GradleConnectionException: Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-8.4-bin.zip'.

  1. Download the Gradle distribution manually from https://services.gradle.org/distributions/gradle-8.4-bin.zip

  2. Configure the distributionUrl in the TemplateProject\gradle\wrapper\gradle-wrapper.properties file to point to the local Gradle file
    distributionUrl=file:///path/to/your/local/gradle- 8.4-bin.zip

  3. Import the unpacked TemplateProject

org.gradle.tooling.BuildException: Could not fetch model of type 'GradleBuild' using connection to Gradle distribution 'file:///path/to/your/local/gradle-8.4-bin.zip'.

  1. Set the downloaded JDK as Java home under Window → Preferences → Gradle → Java home
    project2.png

  2. Import the unpacked TemplateProject


Please register to be able to read further ahead (coming soon section!):

Template Plugin