Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mac OSX] scripting support stalls ohab2 startup #248

Closed
HentschelT opened this issue Dec 5, 2017 · 2 comments
Closed

[Mac OSX] scripting support stalls ohab2 startup #248

HentschelT opened this issue Dec 5, 2017 · 2 comments

Comments

@HentschelT
Copy link

On Mac OSX (10.9), ohab2 startup stalls while installing script engines. The reason is that a 'AppleScript' script engine is present, which later blocks the class loader while attempting to load that engine.

Attached is a patch, which -- in a hacky way -- bypasses loading that engine. IWFM, I don't need AppleScript.
ESH-automation.module.script.patch.txt

(I realize this should probably go to the ESH side of things, just don't think that patch is up to snuff for them :), perhaps someone around here has a better fix)

@5iver
Copy link

5iver commented Mar 8, 2019

@HentschelT, I realize this has been aroud for a long time, but I'm trying to get some of the automation issues cleaned up. Have you tested your proposed fix, and did it correct the problem? I would implement it, but all it is doing is preventing the logger.debug line from running, so I don't see how it could resolve the issue. Also, which version of the JDK were you using?

AppleScript was removed from JDK 10(search for AppleScript), so this is something that will not be an issue for much longer. That document also states...

The AppleScript engine has been mostly unusable in recent releases. The functionality worked only in JDK 7 or JDK 8 on systems that already had Apple's version of the AppleScriptEngine.jar file on the system.

If I'm understanding this, it sounds like this issue would only be a problem for people that had previously installed the AppleScriptEngine.jar. I assume this can also be uninstalled to correct the issue.

@wborn
Copy link
Member

wborn commented Oct 13, 2021

This should no longer be an issue now that openHAB requires Java 11, which no longer has this scripting engine.

@wborn wborn closed this as completed Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants