Skip to content

Update to spigot-1.17.jar: No JavaScript Engine available (mac) #457

@nickmalleson

Description

@nickmalleson

I have recently upgdated to Spigot 1.17. Now if I try to run any javascript commands from within the game nothing happens, and I get this message from the server (the following is produced if I try to do 1+1, but the same happens for any ScriptCraft functions):

[14:51:17] [Server thread/INFO]: nsm99999 issued server command: /js 1+1 
[14:51:17] [Server thread/ERROR]: [scriptcraft] No JavaScript Engine available. ScriptCraft will not work without Javascript.

I also had to update my version of java (on MacOS Big Sur) for the Spigot update, so that may be causing the problem. My version is:

$ java -version
openjdk version "16.0.1" 2021-04-20
OpenJDK Runtime Environment Homebrew (build 16.0.1+0)
OpenJDK 64-Bit Server VM Homebrew (build 16.0.1+0, mixed mode, sharing)

Any ideas? I realise that this may not be a ScriptCraft problem, but I guess others on macs might experience it with the new Java update.

Thanks in advance! (And thanks for ScriptCraft, it's fantastic, my kids have just discovered the castle() method and are desperate to try it out)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions