[graalvm-users] Issue with using js-scriptEngine in OPENjdk17

Ikonne, Eze ike.ikonne at capgemini.com
Thu Jan 26 14:48:34 UTC 2023

Hi Michael,

Thanks, I will try your approach to see if I get a better outcome.


From: Michael Itkin <mitkin at opentext.com>
Sent: Thursday, January 26, 2023 8:45 AM
To: the <graalvm-users at oss.oracle.com>; Ikonne, Eze <ike.ikonne at capgemini.com>
Subject: Re: Issue with using js-scriptEngine in OPENjdk17

I think you need more Jar files.  When I was experimenting I used

[cid:image001.png at 01D93162.F65D5C90]

Michael Itkin

Lead Developer  |  Content Services Engineering


(905) 762 6276



[cid:image002.gif at 01D93162.F65D5C90]

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.

From: Ikonne, Eze via GraalVM-Users <graalvm-users at oss.oracle.com<mailto:graalvm-users at oss.oracle.com>>
Sent: January 25, 2023 10:49 PM
To: the <graalvm-users at oss.oracle.com<mailto:graalvm-users at oss.oracle.com>>
Subject: [EXTERNAL] - [graalvm-users] Issue with using js-scriptEngine in OPENjdk17

CAUTION: 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.

Hi all,

I am trying to use the following jars to enable me to perform  java scripting  in my application running on OpenJDK17. I would

appreciate it if someone in this group could point me to right direction. Also, is what am trying to do actually possible?

Here is the scenario

  1.  Jar files:





  1.  JDK - OpenJDK17

  1.  Code snippet

ScriptEngine engine = null;

engine =  GraalJSScriptEngine.create();

ScriptEngineFactory factory = engine.getFactory();

  1.  Then I got the following exception

java.lang.NoClassDefFoundError: jdk.vm.ci.services.Services

        at org.graalvm.libgraal.LibGraal.<clinit>(LibGraal.java:71)

        at org.graalvm.compiler.truffle.runtime.hotspot.libgraal.LibGraalTruffleRuntimeAccess.getPriority(LibGraalTruffleRuntimeAccess.java:44)

        at com.oracle.truffle.api.Truffle.selectTruffleRuntimeAccess(Truffle.java:90)

        at com.oracle.truffle.api.Truffle$1.run(Truffle.java:131)

        at com.oracle.truffle.api.Truffle$1.run(Truffle.java:108)

        at java.base/java.security.AccessController.doPrivileged(AccessController.java:692)

        at com.oracle.truffle.api.Truffle.initRuntime(Truffle.java:108)

        at com.oracle.truffle.api.Truffle.<clinit>(Truffle.java:63)

        at com.oracle.truffle.api.impl.Accessor.getTVMCI(Accessor.java:1365)

        at com.oracle.truffle.api.impl.Accessor$Constants.<clinit>(Accessor.java:1245)

        at com.oracle.truffle.api.impl.Accessor.engineSupport(Accessor.java:1306)
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://oss.oracle.com/pipermail/graalvm-users/attachments/20230126/568feb5a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 41628 bytes
Desc: image001.png
URL: <http://oss.oracle.com/pipermail/graalvm-users/attachments/20230126/568feb5a/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 3468 bytes
Desc: image002.gif
URL: <http://oss.oracle.com/pipermail/graalvm-users/attachments/20230126/568feb5a/attachment-0001.gif>

More information about the GraalVM-Users mailing list