Missing Applescript engine in java 9+ updates

I have a requirement to invoke apple scripts from java code which is assembled as jar. I use apple script engine jar to invoke the OSA script. Since AppleScriptEngine jar is missing in the recent java updates i jave loaded the jar through external sources. In my local machine it works fine. A jar built using this jar dependency gets executed in my machine but fails to execute in any other machine of similar java and maven version. A jar built in other machines gets executed in my machine but not any other machine, not even the one where the jar was built. When i port and execute the jar in other Mac machines , it throws the error as below.


ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider apple.applescript.AppleScriptEngineFactory could not be instantiated

error loading the machine

Exception in thread "main" java.lang.NullPointerException

at com.logmein.piranha.AppleScriptDriverServer.App.main(App.java:48)


content of META-INF/service/javax.script.ScriptEngineFactory is :

apple.applescript.AppleScriptEngineFactory


provide the MAC , JDK, Maven environment

In my local machine, "eclipse" service is added in the security/privacy settings.

and finally , can you please take a look on this issue with priortiy

Posted on Apr 28, 2019 10:27 PM

Reply

Similar questions

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Missing Applescript engine in java 9+ updates

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.