-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get started with GraalVM Polyglot framework since GraalVM 23.1? #8042
Comments
hi @fabrice-ducos, I think the issue might be in the way you are adding the Python dependency; can you try replacing
with
? |
Dear @alina-yur, That was it! Thank you very much. This typo actually comes from this post #6852 (comment), I just pasted and copied it here (maybe it was correct in the original post at the time it was written, but it is certainly outdated now, and I found no other documentation anywhere about the new Polyglot API in 23.1 and later, without the GraalVM Updater). Now, when one performs The same issue applies to other GraalVM supported languages (Ruby, Javascript...). Best regards |
Hi @fabrice-ducos. The ticket you're linking to is pre-release, so it could have been that it was our thinking at the time, but it's not final documentation. Please refer to https://www.graalvm.org/latest/reference-manual/embed-languages/ for official guidance. |
Dear @alina-yur, thank you for the clarification. I will read your links thoroughly. Best regards! |
Describe GraalVM and your environment :
java -Xinternalversion
:Have you verified this issue still happens when using the latest snapshot? No
You can find snapshot builds here: https://github.com/graalvm/graalvm-ce-dev-builds/releases
Describe the issue
I am new to GraalVM. My current interest is mostly its polyglot abilities (calling various scripting languages from the GraalVM, and having them communicate in both directions with some JVM languages, Java, Scala, Groovy...).
According to the documentation, in order to experiment with scripting languages (without having to write embedding code, e.g. from Java, that can be done in a second step), one needs special versions of interpreters (js, node, ...) that are not provided by default with the graalvm package (that is understandable).
After going through the online doc, I discovered that earlier, these tools could be installed easily with the GraalVM updater
gu
, up to version 23.0. I also discovered that this tool was deprecated and removed since version 23.1 (the one I got).While the
gu
tool was easy to use and understand, I do understand the rationale behind its deprecation, that is clearly explained in the issue #6852. However, the current alternative doesn't look that clear or user-friendly to me.Now users are offered to get the dependencies directly from a
pom.xml
file, also provided in the above issue #6852:That is well and good, but one meets two problems here (at least I do, please confirm).
mvn package
fails (see below).jar
, what to do with it in order to run th examples from the online documentation? Is it straightforward like withgu
?Steps to reproduce the issue
mvn package
Expected behavior
A target directory containing a
.jar
file is produced. But what to do next? (e.g. to easily get or implement a GraalVM interpreter such asjs
,node
... referred to in the GraalVM documentation)It seems that the
pom
file from issue #6852 is either outdated or incomplete. I didn't find any more recent reference on this topic. I can also simply miss some silly point. Of course, it contains only dependencies, but if even the dependencies fail, it makes little sense to build upon them. Is there a special repository to add?It would be nice to find somewhere a minimal working example based on this.
The only temporary solution I see at the moment is to use an older version of GraalVM that provides
gu
, investing some time in a tool that is already deprecated (but that works).Can anyone provide some guidance or advice?
Thanks
The text was updated successfully, but these errors were encountered: