title: Shifting camunda setup from java 7 to 8
body: <p>I was earlier using java 1.7 but I installed 1.8, and now I get the following error while running the camunda</p>
  
  <pre><code>2016-05-10 11:10:29,652 ERROR [stderr] (MSC service thread 1-1) ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider com.sun.script.javascript.RhinoScriptEngineFactory not found
  </code></pre>
  
  <p>After a bit of research I found this <a href="https://developer.jboss.org/thread/239467?start=0" rel="nofollow">page</a>
  This page says that the module.xml file should include the rhinoscriptengine paths. What are those paths?
  My module.xml looks like</p>
  
  <pre><code>&lt;module xmlns="urn:jboss:module:1.3" name="sun.jdk"&gt;
  &lt;resources&gt;
      &lt;!-- currently jboss modules has not way of importing services from
      classes.jar so we duplicate them here --&gt;
      &lt;resource-root path="service-loader-resources"/&gt;
  &lt;/resources&gt;
  &lt;dependencies&gt;
      &lt;system export="true"&gt;
          &lt;paths&gt;
              &lt;!-- todo create new nashorn/scripting module--&gt;
              &lt;path name="com/sun/script/javascript"/&gt;
              &lt;path name="sun/org/mozilla/javascript/internal"/&gt;
              &lt;path name="jdk/nashorn/api/scripting"/&gt;
              &lt;path name="jdk/nashorn/api/scripting/resources"/&gt;
              &lt;path name="jdk/nashorn/internal/codegen"/&gt;
              &lt;path name="jdk/nashorn/internal/codegen/types"/&gt;
              &lt;path name="jdk/nashorn/internal/ir"/&gt;
              &lt;path name="jdk/nashorn/internal/ir/annotations"/&gt;
              &lt;path name="jdk/nashorn/internal/ir/debug"/&gt;
              &lt;path name="jdk/nashorn/internal/ir/visitor"/&gt;
              &lt;path name="jdk/nashorn/internal/lookup"/&gt;
              &lt;path name="jdk/nashorn/internal/objects"/&gt;
              &lt;path name="jdk/nashorn/internal/objects/annotations"/&gt;
              &lt;path name="jdk/nashorn/internal/parser"/&gt;
              &lt;path name="jdk/nashorn/internal/runtime"/&gt;
              &lt;path name="jdk/nashorn/internal/runtime/arrays"/&gt;
              &lt;path name="jdk/nashorn/internal/runtime/linker"/&gt;
              &lt;path name="jdk/nashorn/internal/runtime/options"/&gt;
              &lt;path name="jdk/nashorn/internal/runtime/regexp"/&gt;
              &lt;path name="jdk/nashorn/internal/runtime/regexp/joni"/&gt;
              &lt;path name="jdk/nashorn/internal/runtime/resources"/&gt;
              &lt;path name="jdk/nashorn/internal/runtime/resources/fx"/&gt;
              &lt;path name="jdk/nashorn/internal/runtime/scripts"/&gt;
              &lt;path name="jdk/nashorn/internal/tools"/&gt;
              &lt;path name="jdk/nashorn/internal/tools/resources"/&gt;
              &lt;path name="jdk/internal/dynalink"/&gt;
              &lt;path name="jdk/internal/dynalink/beans"/&gt;
              &lt;path name="jdk/internal/dynalink/linker"/&gt;
              &lt;path name="jdk/internal/dynalink/support"/&gt;
              &lt;!-- END SCRIPTING--&gt;
              &lt;path name="com/sun/image/codec/jpeg"/&gt;
              &lt;path name="com/sun/imageio/plugins/bmp"/&gt;
              &lt;path name="com/sun/imageio/plugins/common"/&gt;
              &lt;path name="com/sun/imageio/plugins/gif"/&gt;
              &lt;path name="com/sun/imageio/plugins/jpeg"/&gt;
              &lt;path name="com/sun/imageio/plugins/png"/&gt;
              &lt;path name="com/sun/imageio/plugins/wbmp"/&gt;
              &lt;path name="com/sun/imageio/spi"/&gt;
              &lt;path name="com/sun/imageio/stream"/&gt;
              &lt;path name="com/sun/jndi/dns"/&gt;
              &lt;path name="com/sun/jndi/ldap"/&gt;
              &lt;path name="com/sun/jndi/url"/&gt;
              &lt;path name="com/sun/jndi/url/corbaname"/&gt;
              &lt;path name="com/sun/jndi/url/dns"/&gt;
              &lt;path name="com/sun/jndi/url/iiop"/&gt;
              &lt;path name="com/sun/jndi/url/iiopname"/&gt;
              &lt;path name="com/sun/jndi/url/ldap"/&gt;
              &lt;path name="com/sun/jndi/url/ldaps"/&gt;
              &lt;path name="com/sun/jndi/url/rmi"/&gt;
              &lt;path name="com/sun/media/sound"/&gt;
              &lt;path name="com/sun/crypto/provider"/&gt;
              &lt;path name="com/sun/org/apache/xml/internal/security/transforms/implementations"/&gt;
              &lt;path name="com/sun/security/auth"/&gt;
              &lt;path name="com/sun/security/auth/login"/&gt;
              &lt;path name="com/sun/security/auth/module"/&gt;
              &lt;path name="com/sun/tools/internal/xjc"/&gt;                
              &lt;path name="sun/awt"/&gt;
              &lt;path name="sun/awt/color"/&gt;
              &lt;path name="sun/awt/datatransfer"/&gt;
              &lt;path name="sun/awt/dnd"/&gt;
              &lt;path name="sun/awt/event"/&gt;
              &lt;path name="sun/awt/geom"/&gt;
              &lt;path name="sun/awt/im"/&gt;
              &lt;path name="sun/awt/image"/&gt;
              &lt;path name="sun/awt/image/codec"/&gt;
              &lt;path name="sun/awt/motif"/&gt;
              &lt;path name="sun/awt/resources"/&gt;
              &lt;path name="sun/awt/shell"/&gt;
              &lt;path name="sun/awt/util"/&gt;
              &lt;path name="sun/awt/windows"/&gt;
              &lt;path name="sun/awt/X11"/&gt;
              &lt;path name="sun/dc"/&gt;
              &lt;path name="sun/print"/&gt;
              &lt;path name="sun/print/resources"/&gt;
              &lt;path name="sun/security/action"/&gt;
              &lt;path name="sun/security/pkcs"/&gt;
              &lt;path name="sun/security/x509"/&gt;
              &lt;path name="sun/jdbc/odbc"/&gt;
              &lt;path name="sun/jdbc/odbc/ee"/&gt;
              &lt;path name="sun/font"/&gt;
              &lt;path name="sun/misc"/&gt;
              &lt;path name="sun/io"/&gt;
              &lt;path name="sun/nio"/&gt;
              &lt;path name="sun/nio/ch"/&gt;
              &lt;path name="sun/nio/cs"/&gt;
              &lt;path name="sun/nio/cs/ext"/&gt;
              &lt;path name="sun/security"/&gt;
              &lt;path name="sun/security/util"/&gt;
              &lt;path name="sun/security/krb5"/&gt;
              &lt;path name="sun/util"/&gt;
              &lt;path name="sun/util/calendar"/&gt;
              &lt;path name="sun/util/locale"/&gt;
              &lt;path name="sun/util/resources"/&gt;
              &lt;path name="sun/security/pkcs11"/&gt;
              &lt;path name="sun/security/provider"/&gt;
              &lt;path name="sun/text"/&gt;
              &lt;path name="META-INF/services"/&gt;
          &lt;/paths&gt;
          &lt;exports&gt;
              &lt;include-set&gt;
                  &lt;path name="META-INF/services"/&gt;
              &lt;/include-set&gt;
          &lt;/exports&gt;
      &lt;/system&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p></p>
  
  <p>Also I tried removing the rhino script from the ScriptEngineFactory file. That also gave me an error.</p>
  
  <p>Does this mean that camunda is not compatible with java 8? And how can I fix this issue?</p>
  
  <p>Softwares used:</p>
  
  <ul>
  <li>Camunda 7.4.0</li>
  <li>Wildfly 8.2.1</li>
  </ul>