From ike.ikonne at capgemini.com Thu Jan 26 03:49:13 2023 From: ike.ikonne at capgemini.com (Ikonne, Eze) Date: Thu, 26 Jan 2023 03:49:13 +0000 Subject: [graalvm-users] Issue with using js-scriptEngine in OPENjdk17 Message-ID: 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.(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.(Truffle.java:63) at com.oracle.truffle.api.impl.Accessor.getTVMCI(Accessor.java:1365) at com.oracle.truffle.api.impl.Accessor$Constants.(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: From mitkin at opentext.com Thu Jan 26 14:45:15 2023 From: mitkin at opentext.com (Michael Itkin) Date: Thu, 26 Jan 2023 14:45:15 +0000 Subject: [graalvm-users] Issue with using js-scriptEngine in OPENjdk17 In-Reply-To: References: Message-ID: I think you need more Jar files. When I was experimenting I used [cid:2b0f948b-4f63-4a37-a7eb-0327b5a358f5] Michael Itkin Lead Developer | Content Services Engineering Phone: (905) 762 6276 Website: www.opentext.com [cid:2ef43cb8-203c-4c35-abb3-df534ec79106] 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 Sent: January 25, 2023 10:49 PM To: the 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.(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.(Truffle.java:63) at com.oracle.truffle.api.impl.Accessor.getTVMCI(Accessor.java:1365) at com.oracle.truffle.api.impl.Accessor$Constants.(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: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 41628 bytes Desc: image.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-rtyxz5om.gif Type: image/gif Size: 3468 bytes Desc: Outlook-rtyxz5om.gif URL: From ike.ikonne at capgemini.com Thu Jan 26 14:48:34 2023 From: ike.ikonne at capgemini.com (Ikonne, Eze) Date: Thu, 26 Jan 2023 14:48:34 +0000 Subject: [graalvm-users] Issue with using js-scriptEngine in OPENjdk17 In-Reply-To: References: Message-ID: Hi Michael, Thanks, I will try your approach to see if I get a better outcome. Ike From: Michael Itkin Sent: Thursday, January 26, 2023 8:45 AM To: the ; Ikonne, Eze 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 [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 > Sent: January 25, 2023 10:49 PM To: the > 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.(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.(Truffle.java:63) at com.oracle.truffle.api.impl.Accessor.getTVMCI(Accessor.java:1365) at com.oracle.truffle.api.impl.Accessor$Constants.(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: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 41628 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 3468 bytes Desc: image002.gif URL: From mitkin at opentext.com Thu Jan 26 14:54:42 2023 From: mitkin at opentext.com (Michael Itkin) Date: Thu, 26 Jan 2023 14:54:42 +0000 Subject: [graalvm-users] Issue with using js-scriptEngine in OPENjdk17 In-Reply-To: References: Message-ID: Sorry one more polyglot-21.3.0.jar Michael Itkin Lead Developer | Content Services Engineering Phone: (905) 762 6276 Website: 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 Sent: January 26, 2023 9:48 AM To: Michael Itkin ; the 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 Sent: Thursday, January 26, 2023 8:45 AM To: the ; Ikonne, Eze 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 [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 > Sent: January 25, 2023 10:49 PM To: the > 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.(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.(Truffle.java:63) at com.oracle.truffle.api.impl.Accessor.getTVMCI(Accessor.java:1365) at com.oracle.truffle.api.impl.Accessor$Constants.(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: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 41628 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 3468 bytes Desc: image002.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-rk4ecjhn.gif Type: image/gif Size: 3468 bytes Desc: Outlook-rk4ecjhn.gif URL: From mitkin at opentext.com Thu Jan 26 15:00:33 2023 From: mitkin at opentext.com (Michael Itkin) Date: Thu, 26 Jan 2023 15:00:33 +0000 Subject: [graalvm-users] Issue with using js-scriptEngine in OPENjdk17 In-Reply-To: References: Message-ID: Actually on second thought not sure you need polyglot jar Try without it first ! Michael Itkin Lead Developer | Content Services Engineering Phone: (905) 762 6276 Website: www.opentext.com [cid:d537cd27-6810-44f5-8bfe-6ed960d68b42] 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: Michael Itkin via GraalVM-Users Sent: January 26, 2023 9:54 AM To: Ikonne, Eze ; the Subject: [EXTERNAL] - Re: [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. Sorry one more polyglot-21.3.0.jar Michael Itkin Lead Developer | Content Services Engineering Phone: (905) 762 6276 Website: 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 Sent: January 26, 2023 9:48 AM To: Michael Itkin ; the 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 Sent: Thursday, January 26, 2023 8:45 AM To: the ; Ikonne, Eze 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 [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 > Sent: January 25, 2023 10:49 PM To: the > 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.(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.(Truffle.java:63) at com.oracle.truffle.api.impl.Accessor.getTVMCI(Accessor.java:1365) at com.oracle.truffle.api.impl.Accessor$Constants.(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: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 41628 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 3468 bytes Desc: image002.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-rk4ecjhn.gif Type: image/gif Size: 3468 bytes Desc: Outlook-rk4ecjhn.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-ytmfim50.gif Type: image/gif Size: 3468 bytes Desc: Outlook-ytmfim50.gif URL: