Skip to content

Nucleus: Error: Could not find or load main class com.aws.greengrass.easysetup.GreengrassSetup. #1727

@eduelias

Description

@eduelias

Describe the bug
While trying to run the command:

java -jar "/var/greengrass/v2/GreengrassInstaller/lib/Greengrass.jar" \
--init-config "/var/greengrass/v2/GreengrassInstaller/config.yaml" \
--setup-system-service true \
--trusted-plugin "/var/greengrass/v2/GreengrassInstaller/aws.greengrass.FleetProvisioningByClaim.jar"

On Fedora-IoT 42 (OpenJDK21), we get the error:

Error: Could not find or load main class com.aws.greengrass.easysetup.GreengrassSetup
Caused by: java.lang.ClassNotFoundException: com.aws.greengrass.easysetup.GreengrassSetup

While on Fedora-IoT 41 (OpenJDK11) the command works fine.

To Reproduce
Using Fedora-IoT 42 (OpenJDK21) image, try to run the command with default values, the error happens.

Expected behavior
To run install Greengrass and run the FleetProvisioning plugin.

Actual behavior
Tell us what actually happened.

Environment

  • OS: Fedora Linux 42.20250601.0 (IoT Edition)
  • JDK version: 21
  • Nucleus version: 2.15.0

Additional context
Again, we've been using the same configs/jars with Fedora 41 (OpenJDK11) with no issues.

E.g. what is the impact of the bug?
We have 1100 Automated Parcel Lockers in The Netherlands that are missing updates and configuration because they cannot have their OS Updated because of this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions