title: Eclipse Plug-in Development - use Nashorn
body: <p>I'm developing an Eclipse Plug-in where I use Nashorn. When I run the same application as a standalone Java application, I face no errors. But when I run it as a plugin, I get this error -</p>
  
  <pre><code>java.lang.NoClassDefFoundError: jdk/nashorn/internal/runtime/options/Options
  </code></pre>
  
  <p>The stack trace further points to a location where I'm creating an Options object. I've already tried adding access restriction rules(just in case), but it doesn't help. I've also seen these two related links - <a href="https://stackoverflow.com/questions/32655117/how-to-make-jdk-nashorn-api-scripting-jsobject-visible-in-plugin">How to make jdk.nashorn.api.scripting.JSObject visible in plugin</a> , <a href="https://stackoverflow.com/questions/25222811/access-restriction-the-type-application-is-not-api-restriction-on-required-l">Access restriction: The type &#39;Application&#39; is not API (restriction on required library rt.jar)</a> , but the problem persists. I have double checked to ensure that the project is using Java 8. </p>
  
  <p>Help?</p>