<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Andreas,<br>
    <br>
    currently, we strongly endorse the use of GraalVM. That guarantees
    that you use Graal JavaScript with Graal as optimizing compiler.<br>
    <br>
    What you tried to achieve will work; note, however, that in such a
    setup (on JDK 8) Graal is NOT used as optimzing compiler (but
    HotSpot Server Compiler C2 is), thus the performance of Graal
    JavaScript will likely be much worse than it would be on GraalVM. <br>
    <br>
    Your commandline was probably missing the
    $GRAALVM/jre/lib/boot/graaljs-scriptengine.jar file? I am using a
    commandline like:<br>
    <br>
       GRAALVM=/path/to/GraalVM<br>
       /path/to/jdk8/bin/java -cp
$GRAALVM/jre/languages/js/graaljs.jar:$GRAALVM/jre/lib/truffle/truffle-api.jar:$GRAALVM/jre/lib/boot/graal-sdk.jar:$GRAALVM/jre/lib/boot/graaljs-scriptengine.jar:$GRAALVM/jre/tools/regex/tregex.jar:.
    MyJavaApp<br>
    <br>
    In MyJavaApp, you can start Graal JavaScript via ScriptEngine; it
    registers under several names, including "graal.js". Again, note
    that performance will be suboptimal this way; use GraalVM for better
    results.<br>
    <br>
    For JDK 11 and beyond, you can execute Graal JavaScript with Graal
    as optimizing compiler on a stock JVM already. We are currently
    working on improved packaging/modularizing and should be able to
    publish some documentation on that in the coming weeks.<br>
    <br>
    Best,<br>
    Christian Wirth<br>
    Graal JavaScript team<br>
    <br>
    <br>
    <br class="">
    <div class="moz-forward-container">
      <div><br class="">
        <blockquote type="cite" class=""><span style="font-family:
            -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;
            color:rgba(0, 0, 0, 1.0);" class=""><b class="">From: </b></span><span
            style="font-family: -webkit-system-font, Helvetica Neue,
            Helvetica, sans-serif;" class="">Andreas Mueller &lt;<a
              href="mailto:am@iit.de" class="" moz-do-not-send="true">am@iit.de</a>&gt;<br
              class="">
          </span>
          <div style="margin-top: 0px; margin-right: 0px; margin-bottom:
            0px; margin-left: 0px;" class=""><span style="font-family:
              -webkit-system-font, Helvetica Neue, Helvetica,
              sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b
                class="">Subject: </b></span><span style="font-family:
              -webkit-system-font, Helvetica Neue, Helvetica,
              sans-serif;" class=""><b class="">[graalvm-users] Migrate
                from Nashhorn JSR 223 Scripting Engine to Graal</b><br
                class="">
            </span></div>
          <div style="margin-top: 0px; margin-right: 0px; margin-bottom:
            0px; margin-left: 0px;" class=""><span style="font-family:
              -webkit-system-font, Helvetica Neue, Helvetica,
              sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b
                class="">Date: </b></span><span style="font-family:
              -webkit-system-font, Helvetica Neue, Helvetica,
              sans-serif;" class="">18 June 2018 at 15:05:22 CEST<br
                class="">
            </span></div>
          <div style="margin-top: 0px; margin-right: 0px; margin-bottom:
            0px; margin-left: 0px;" class=""><span style="font-family:
              -webkit-system-font, Helvetica Neue, Helvetica,
              sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b
                class="">To: </b></span><span style="font-family:
              -webkit-system-font, Helvetica Neue, Helvetica,
              sans-serif;" class=""><a
                href="mailto:graalvm-users@oss.oracle.com" class=""
                moz-do-not-send="true">graalvm-users@oss.oracle.com</a><br
                class="">
            </span></div>
          <br class="">
          <div class="">
            <meta http-equiv="Content-Type" content="text/html;
              charset=utf-8" class="">
            <meta http-equiv="Content-Type" content="text/html;
              charset=utf-8" class="">
            <div style="word-wrap: break-word; -webkit-nbsp-mode: space;
              -webkit-line-break: after-white-space;" class="">Hi,
              <div class=""><br class="">
              </div>
              <div class="">I was cold hitted by the announcement that
                Nashorn might be deprecated in future. Since we have a
                lot JS scripts implemented that run on the JVM and
                interact with Java very well, I need an alternative JSR
                223 JavaScript engine. So GraalVM comes to mind (and is
                suggested).</div>
              <div class=""><br class="">
              </div>
              <div class="">GraalVM seems to me a JDK replacement rather
                than a scripting engine. I downloaded it but didn’t find
                a jar file (such as graaljs.jar) that contains the JSR
                223 engine and that I just add to the classpath of a
                legacy JDK 1.8.x and then it is automatically available
                when I list the engines.</div>
              <div class=""><br class="">
              </div>
              <div class="">Can anybody tell me how I can achieve this?</div>
              <div class=""><br class="">
              </div>
              <div class="">Thanks,</div>
              <div class="">Andreas</div>
              <div class=""><br class="">
                <div class="">-- <br class="">
                  Andreas Mueller<br class="">
                  IIT Software GmbH<br class="">
                  <a
href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.swiftmq.com&amp;d=DwMFaQ&amp;c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&amp;r=CUkXBxBNT_D5N6HMJ5T9Z6rmvNKYsqupcbk72K0lcoQ&amp;m=YTqH_mQDw9AIEnzBrfofwq1rYWCuIWhxyDyBDa9EcyY&amp;s=xqkFZTExfE1C8Gd457Rf-iFF0BBPX6l1-XSW791i2H4&amp;e="
                    class="" moz-do-not-send="true">http://www.swiftmq.com</a><br
                    class="">
                  <br class="">
                  <span class=""><img apple-inline="yes"
                      id="4D63F11E-1D09-447D-ACFC-82E541C83388" class=""
                      src="cid:part4.1121624D.1730F500@oracle.com"></span></div>
                <br class="">
              </div>
              <br class="">
              <br class="">
              <hr class="">
              IIT Software GmbH<br class="">
              Falkenhorst 11, 48155 Münster, Germany<br class="">
              Phone: +49 (0)251 39 72 99 00<br class="">
              Managing Director: Andreas Müller<br class="">
              District Court: Amtsgericht Münster, HRB 16294<br class="">
              VAT-No: DE199945912<br class="">
              <br class="">
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.<br
                class="">
            </div>
            _______________________________________________<br class="">
            GraalVM-Users mailing list<br class="">
            <a href="mailto:GraalVM-Users@oss.oracle.com" class=""
              moz-do-not-send="true">GraalVM-Users@oss.oracle.com</a><br
              class="">
            <a class="moz-txt-link-freetext" href="https://oss.oracle.com/mailman/listinfo/graalvm-users">https://oss.oracle.com/mailman/listinfo/graalvm-users</a></div>
        </blockquote>
      </div>
      <br class="">
    </div>
  </body>
</html>