-
Notifications
You must be signed in to change notification settings - Fork 382
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
No JavaScript Engine available. ScriptCraft will not work without Javascript. #452
Comments
same. nothing about a js engine in docs but i guess you could try installing node somewhere? |
5650c49 |
@quartze Hmm, weird. Just for sanity's sake, when you enter "C:\Progra~1\Java\jdk_1.8.0_271\bin\java -version" you get the expected version number, right? |
I'm having the same issue. When I run
So I get the right version of java. And I just installed it today(used jdk 15 before). |
@Tacoalarmclock well you're using openJDK, rather than oracle's normal jdk. That might be your problem (as although OpenJDK and oracle's jdk are functionally the same, I don't know if OpenJDK comes with javascript prepackaged as well) |
I'm having the same issue. How could I compile this myself? |
There is a build in the zip file release here: https://github.com/Magikcraft/MagikCraft/releases |
As I poorly understand java, problem is that Spigot server needs at least java 16, but javascript engine (Nashorn) was removed in java 15.
|
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'. |
Everyone youll not regret it to fix that use java 8.0.302-open you can install with sdkman |
Reinstall spigot server with command: openjdk-8-jdk needed |
Hey @ediloren I tried the alreadx existent jar in your repository's target folder. It doesn't work. Then i tried building it myself but some issues occured. I added asm libs to it and built it successfully. But even with building your repo myself i didn't get it to work. Is there any chance you still have the working jar yourself? |
@FreshImmuc I'm sorry but my fixes were done a long time ago; I expect they do not work today, as probably more patches are needed. Although interesting, I do not have the time to follow the project anymore. |
Hi i have this error when start server, it´s like sv doesnt find scriptcraft folder and doesnt recognize any javascript code. Error:
No JavaScript Engine available. ScriptCraft will not work without Javascript.
The text was updated successfully, but these errors were encountered: