Skip to content
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

Does not work with GraalVM R21.2.0 - java type error #458

Open
ediloren opened this issue Aug 27, 2021 · 3 comments
Open

Does not work with GraalVM R21.2.0 - java type error #458

ediloren opened this issue Aug 27, 2021 · 3 comments

Comments

@ediloren
Copy link

Trying to use GraalVM leads to java type error (GraalVM cannot access java types by default, because of security considerations).

I patched ScriptCraft to work with GraalVM with the GraalJS JavaScript engine.

Tested under Win10, GraalVM R21.2.0, SpigotMC R1.17.1.

You may try it using the fork https://github.com/ediloren/ScriptCraft. Includes instructions in the updated 'ReadMe'.

@carlosble
Copy link

Thank you for the fix @ediloren ! works for me!

@jrennie
Copy link

jrennie commented Jan 8, 2022

This worked, but only if I used GraalVM 20.3 (and MC 1.16.5). There was also an error org.graalvm.polyglot.PolyglotException: TypeError: logger["log(java.util.logging.Level,java.lang.String)"] is not a function, but I was able to get the correct result for js 1+1

@jrennie
Copy link

jrennie commented Jan 8, 2022

The "howl" example at https://github.com/ediloren/ScriptCraft worked for me, but the up() function doesn't seem to be defined and blocks doesn't seem to be defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants