mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 04:24:24 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user