Set system property to run GraalVM Truffle on unsupported platforms (#5715)

Refs https://github.com/openhab/openhab-addons/issues/19276.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
This commit is contained in:
Florian Hotze
2026-07-14 18:24:49 +02:00
committed by GitHub
parent cd816f493a
commit 5a8886a06f
@@ -38,6 +38,10 @@ public final class Activator implements BundleActivator {
@Override
public void start(@Nullable BundleContext bc) throws Exception {
logger.info("Starting openHAB {} ({})", OpenHAB.getVersion(), OpenHAB.buildString());
// Enable GraalVM Truffle to run on unsupported platforms, e.g., BSD
System.setProperty("polyglot.engine.allowUnsupportedPlatform", "true");
ServiceReference<ConfigurationAdmin> ref;
if (bc != null && (ref = bc.getServiceReference(ConfigurationAdmin.class)) != null) {
ConfigurationAdmin ca = bc.getService(ref);