#Updating old jython lib causing scriptManager.getEngineByName("javascript") to return null?

1 messages · Page 1 of 1 (latest)

lean flax
#

Saw something online about "As of Jython 2.5.1 an implementation of JSR 223 is bundled in jython.jar. Simply add jython to your CLASSPATH and ask for the python script engine."
I am sure this is relevant but I honestly do not know how to set this up in a fashion where the application will build and all this will work for users. Can anyone point me in the right direction? Running on Java 11 btw

pseudo tapirBOT
#

<@&987246554085740594> please have a look, thanks.

pseudo tapirBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

lucid carbon
lean flax
#

I do not fully understand it, either. Our team updated the jython library and now the script engine is just null.

lucid carbon
lean flax
#

No, we are still on Java 11. I know Nashorn is removed in later versions, but we have been utilizing it fine until updating jython.

lucid carbon
#

🤔

#

did you check that the name of the engine is correct ?

#

what happens if you list all the engines ?

#

does the nashorn engine appear again if you remove jpython from the dependencies ?

#

@lean flax