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

Michael Itkin mitkin at opentext.com
Thu Jan 26 14:54:42 UTC 2023


Sorry one more

polyglot-21.3.0.jar


Michael Itkin

Lead Developer  |  Content Services Engineering

Phone:

(905) 762 6276

Website:

www.opentext.com<http://www.opentext.com/>

[cid:f263025b-a326-4f27-bfb5-53ca332a6a59]

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 <ike.ikonne at capgemini.com>
Sent: January 26, 2023 9:48 AM
To: Michael Itkin <mitkin at opentext.com>; the <graalvm-users at oss.oracle.com>
Subject: [EXTERNAL] - RE: 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 Michael,



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



Ike



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

Phone:

(905) 762 6276

Website:

www.opentext.com<http://www.opentext.com/>

[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:

js-scriptengine-22.3.1.jar

truffle-api-22.3.1.jar

compiler-22.3.1.jar

graal-sdk-22.3.1.jar



  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/371d8946/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/371d8946/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/371d8946/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-rk4ecjhn.gif
Type: image/gif
Size: 3468 bytes
Desc: Outlook-rk4ecjhn.gif
URL: <http://oss.oracle.com/pipermail/graalvm-users/attachments/20230126/371d8946/attachment-0003.gif>


More information about the GraalVM-Users mailing list