title: ScriptEngineManager and ScriptEngine can not be loaded in Karaf OSGi (Nashorn not found)
body: <p>I am trying to use <code>ScriptEngineManager</code> and <code>ScriptEngine</code> to execute some JavaScript code with Java. I use Java 8 I am executing this code under Karaf OSGi.</p>
  
  <p>The example I used works fine in a sample Java Class, but packing it in a bundle gives me this error <code>ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider jdk.nashorn.api.scripting.NashornScriptEngineFactory not found</code></p>
  
  <p>When I look to the headers of the bundle, I see that the bundle imports <code>javax.script,</code> the package of the called classes but it seems that (nashorn) the provider is not found.</p>
  
  <p>Thanks</p>