title: Java Nashorn - ClassNotFoundException - Java.type()
body: <p>I am currently creating a plugin for the Bukkit-Server, but i have a problem using the Nashorn scripting engine. I am evaluating the external javascript file from my Java-Plugin. I cant get my javascript to import the classes from my plugin, only standard java classes are working (like <code>var JavaBool = Java.type('java.lang.Boolean');</code>, but not <code>var Holder = Java.type('io.github.advtest1.js.JSHolder');</code>)</p>
  
  <p>Whenever I try to load one of these I get the following error:</p>
  
  <pre><code>Caused by: java.lang.ClassNotFoundException: io.github.advtest1.js.JSHolder
  </code></pre>
  
  <p>After a bit of researching i found that it has something to do with my plugin-classes beeing in the classpath, but how can i add it to the classpath when  Bukkit itself loads the plugin and i don't want any other startoptions for the server then <code>java -jar bukkit.jar</code>?</p>
  
  <p>Feel free to ask, if you need additional information.
  Thanks in advance!</p>