question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
davidyangcommented, Aug 29, 2021

Hey ScriptCrafters - I was able to get a working version with Java 16 using the Standalone Nashorn. It’s really messy (I don’t do any Java development and so don’t understand the toolchain).

The branch is here: https://github.com/davidyang/Scriptcraft

It still works with ant (I added Ivy and changed the .classpath since I was using Eclipse to get autocomplete).

Would love to merge this into main and have a working Scriptcraft - this really is the best plugin for building in Minecraft that I’ve found.

1reaction
LexiHDevcommented, Jul 1, 2021

Hey! Sorry, that would be something @walterhiggins would have to implement.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update to spigot-1.17.jar: No JavaScript Engine available (mac)
I have recently upgdated to Spigot 1.17. Now if I try to run any javascript commands from within the game nothing happens, and...
Read more >
How to fix "Error! No JavaScript engine found." | SpigotMC
Hello, sometimes when I join, or sometime later, I get this error message in the chat. There is nothing in the console, and...
Read more >
Plugin Tutorial (Eclipse) - Official BukkitWiki - Fandom
Previously you needed build against bukkit, however bukkit artifacts are no longer distributed at spigot with 1.16. If you wish to, you may...
Read more >
WorldEdit - EngineHub
Downloads · Find the mods folder inside your Minecraft client/server's folder. · Place the downloaded ".jar" file in your mods folder. · Start...
Read more >
Server Update Changelogs - BronyTales Minecraft
Note that these may not be the most up-to-date. For the most recent updates, check the Discord. (All post times are in UTC)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found