<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
        {mso-style-name:x_msonormal;
        margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.xmsolistparagraph, li.xmsolistparagraph, div.xmsolistparagraph
        {mso-style-name:x_msolistparagraph;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle25
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:391848972;
        mso-list-template-ids:1340370886;}
@list l1
        {mso-list-id:891771442;
        mso-list-template-ids:51662748;}
@list l1:level1
        {mso-level-start-at:3;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l2
        {mso-list-id:1049063864;
        mso-list-template-ids:-567005322;}
@list l2:level1
        {mso-level-start-at:2;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l3
        {mso-list-id:1071779254;
        mso-list-template-ids:-2038024442;}
@list l3:level1
        {mso-level-start-at:4;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi Michael,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks, I will try your approach to see if I get a better outcome.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Ike<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Michael Itkin <mitkin@opentext.com> <br>
<b>Sent:</b> Thursday, January 26, 2023 8:45 AM<br>
<b>To:</b> the <graalvm-users@oss.oracle.com>; Ikonne, Eze <ike.ikonne@capgemini.com><br>
<b>Subject:</b> Re: Issue with using js-scriptEngine in OPENjdk17<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:14.0pt;color:black">I think you need more Jar files.  When I was experimenting I used<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:14.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:14.0pt;color:black"><img width="1426" height="715" style="width:14.8541in;height:7.4479in" id="Picture_x0020_1" src="cid:image001.png@01D93162.F65D5C90"></span><span style="font-size:14.0pt;color:black"><o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:14.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div id="Signature">
<div>
<div>
<p><b><span lang="EN-CA" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Michael Itkin</span></b><span style="color:black"><o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Lead</span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"> Developer  |  Content Services Engineering</span><span style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td width="60" style="width:45.0pt;padding:0in 0in 0in 0in">
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Phone:</span><o:p></o:p></p>
</td>
<td style="padding:0in 0in 0in 0in">
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">(905) 762 6276</span><o:p></o:p></p>
</td>
</tr>
<tr>
<td style="padding:0in 0in 0in 0in"></td>
<td style="padding:0in 0in 0in 0in"></td>
</tr>
<tr>
<td style="padding:0in 0in 0in 0in"></td>
<td style="padding:0in 0in 0in 0in"></td>
</tr>
<tr>
<td style="padding:0in 0in 0in 0in"></td>
<td style="padding:0in 0in 0in 0in"></td>
</tr>
<tr>
<td style="padding:0in 0in 0in 0in">
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Website:</span><o:p></o:p></p>
</td>
<td style="padding:0in 0in 0in 0in">
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><a href="http://www.opentext.com/">www.opentext.com</a></span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p><span lang="EN-CA" style="color:black"><img border="0" width="170" height="32" style="width:1.7708in;height:.3333in" id="Picture_x0020_2" src="cid:image002.gif@01D93162.F65D5C90"></span><span lang="EN-CA" style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black"><br>
<br>
</span><span lang="EN-CA" style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#999999">This email message is confidential, may be privileged, and is intended for the exclusive use of the addressee. Any other person is strictly prohibited from disclosing
 or reproducing it. If the addressee cannot be reached or is unknown to you, please inform the sender by return email and delete this email message and all copies immediately.</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
</div>
</div>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> Ikonne, Eze via GraalVM-Users <<a href="mailto:graalvm-users@oss.oracle.com">graalvm-users@oss.oracle.com</a>><br>
<b>Sent:</b> January 25, 2023 10:49 PM<br>
<b>To:</b> the <<a href="mailto:graalvm-users@oss.oracle.com">graalvm-users@oss.oracle.com</a>><br>
<b>Subject:</b> [EXTERNAL] - [graalvm-users] Issue with using js-scriptEngine in OPENjdk17</span>
<o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div style="border:solid #9C6500 1.0pt;padding:1.0pt 1.0pt 1.0pt 1.0pt">
<p class="MsoNormal" style="background:#FFEB9C"><strong><span style="font-family:"Calibri",sans-serif;color:red">CAUTION:</span></strong><span style="color:black"> This email originated from outside of the organization. Do not click links or open attachments
 unless you recognize the sender and know the content is safe. If you feel that the email is suspicious, please report it using PhishAlarm.</span><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="xmsonormal">Hi all,<o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
<p class="xmsonormal">I am trying to use the following jars to enable me to perform  java scripting  in my application running on OpenJDK17. I would<o:p></o:p></p>
<p class="xmsonormal">appreciate it if someone in this group could point me to right direction. Also, is what am trying to do actually possible?<o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
<p class="xmsonormal">Here is the scenario<o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="xmsolistparagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">Jar files:<o:p></o:p></li></ol>
<p class="xmsolistparagraph">js-scriptengine-22.3.1.jar<o:p></o:p></p>
<p class="xmsolistparagraph">truffle-api-22.3.1.jar<o:p></o:p></p>
<p class="xmsolistparagraph">compiler-22.3.1.jar<o:p></o:p></p>
<p class="xmsolistparagraph">graal-sdk-22.3.1.jar<o:p></o:p></p>
<p class="xmsolistparagraph"> <o:p></o:p></p>
<ol style="margin-top:0in" start="2" type="1">
<li class="xmsolistparagraph" style="margin-left:0in;mso-list:l2 level1 lfo2">JDK – OpenJDK17<o:p></o:p></li></ol>
<p class="xmsonormal"> <o:p></o:p></p>
<ol style="margin-top:0in" start="3" type="1">
<li class="xmsolistparagraph" style="margin-left:0in;mso-list:l1 level1 lfo3">Code snippet<o:p></o:p></li></ol>
<p class="xmsolistparagraph"> <o:p></o:p></p>
<p class="xmsolistparagraph">ScriptEngine engine = null;<o:p></o:p></p>
<p class="xmsolistparagraph">engine =  GraalJSScriptEngine.create();  <o:p></o:p></p>
<p class="xmsolistparagraph">ScriptEngineFactory factory = engine.getFactory();<o:p></o:p></p>
<p class="xmsolistparagraph"> <o:p></o:p></p>
<ol style="margin-top:0in" start="4" type="1">
<li class="xmsolistparagraph" style="margin-left:0in;mso-list:l3 level1 lfo4">Then I got the following exception<o:p></o:p></li></ol>
<p class="xmsonormal">java.lang.NoClassDefFoundError: jdk.vm.ci.services.Services<o:p></o:p></p>
<p class="xmsonormal">        at org.graalvm.libgraal.LibGraal.<clinit>(LibGraal.java:71)<o:p></o:p></p>
<p class="xmsonormal">        at org.graalvm.compiler.truffle.runtime.hotspot.libgraal.LibGraalTruffleRuntimeAccess.getPriority(LibGraalTruffleRuntimeAccess.java:44)<o:p></o:p></p>
<p class="xmsonormal">        at com.oracle.truffle.api.Truffle.selectTruffleRuntimeAccess(Truffle.java:90)<o:p></o:p></p>
<p class="xmsonormal">        at com.oracle.truffle.api.Truffle$1.run(Truffle.java:131)<o:p></o:p></p>
<p class="xmsonormal">        at com.oracle.truffle.api.Truffle$1.run(Truffle.java:108)<o:p></o:p></p>
<p class="xmsonormal">        at java.base/java.security.AccessController.doPrivileged(AccessController.java:692)<o:p></o:p></p>
<p class="xmsonormal">        at com.oracle.truffle.api.Truffle.initRuntime(Truffle.java:108)<o:p></o:p></p>
<p class="xmsonormal">        at com.oracle.truffle.api.Truffle.<clinit>(Truffle.java:63)<o:p></o:p></p>
<p class="xmsonormal">        at com.oracle.truffle.api.impl.Accessor.getTVMCI(Accessor.java:1365)<o:p></o:p></p>
<p class="xmsonormal">        at com.oracle.truffle.api.impl.Accessor$Constants.<clinit>(Accessor.java:1245)<o:p></o:p></p>
<p class="xmsonormal">        at com.oracle.truffle.api.impl.Accessor.engineSupport(Accessor.java:1306)<o:p></o:p></p>
</div>
<p class="MsoNormal"><span style="font-size:7.0pt">This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,
 you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.</span>
<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>