You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Java Version: 1.8.0_241
Client Version: Vanilla 1.15.1
Server Version: Paper 1.15.1 (build 62) PaperMC/Paper@d4ae43f
Error Log:
21.01 21:10:10 [Server] INFO Enabling scriptcraft v3.4.0-2019-01-20*
21.01 21:10:10 [Server] ERROR No JavaScript Engine available. ScriptCraft will not work without Javascript.
21.01 21:10:10 [Server] Startup Done (19.548s)! For help, type "help"
Unfortunately, Github says that the file is over 10MB. So here's a link to download Buildtools instead (Buildtools will help prevent the spigot server from crashing, along with installing the server) : https://www.spigotmc.org/wiki/buildtools/
The instructions to create a 1.15.1 spigot server will be in the description of the website as well.
I'm new to ScriptCraft and the mc server. I was just trying to set this up and get it running. I had installed the Java JRE and I got this error. When I installed the Java JDK this error went away and scriptcraft seems to be working.
ghost changed the title [-]ScriptCraft broken in 1.15.1?[/-][+]ScriptCraft - Potentially Incompatible with Minecraft 1.15.2 + JRE[/+]on Jan 26, 2020
ghost changed the title [-]ScriptCraft - Potentially Incompatible with Minecraft 1.15.2 + JRE[/-][+]ScriptCraft - Potential Compatibility Issue with Minecraft 1.15.2 + JRE[/+]on Jan 26, 2020
I am using build #71 of papermc. I'm using my own plugin written in Kotlin to do the loading, but it failed on the 1.15.2 build. I got it to work on JDK 8 by doing this:
val engine = ScriptEngineManager(null).getEngineByName("nashorn")
The topic of Nashorn with JDK8 has been discussed in the Google Group. Graal might be the way to go at some point. @jwulf it would be nice to share notes with you about what you did there. I can add it into docs. Note from the linked forum post that Jonathan Perret provided some notes for anyone who is interested.
While Paper is a fork of Spigot (responding to "Dude, switch to CRAFTBUKKIT") to my knowledge ScriptCraft has never actually been tested with Paper enough to claim "support". So for anyone using Paper, please write up something (in a dedicated ticket which might lead to published documentation) about how and why.
About "ScriptCraft now requires the JDK (Java SE 13.0.2) to run as of Minecraft 1.15.2." - I don't think that's accurate. I just loaded 1.15.2 with 1.9 yesterday, haven't tested with SCJS yet. I hope we can get some concensus on details here.
Magikcraft uses Scriptcraft with Paper 1.15.2 and GraalVM. Here is a working Docker image: https://hub.docker.com/r/magikcraft/scriptcraft. I've been running in production for years with it.
Mind you, with 1.15.2 Drones don't work - CraftEvil has been removed.
I first tried using ScriptCraft (3.4.0 jar) with Paper ("no javascript engine available"). Then I tried spigot but go the same error. I'm using java 17 and a recent build of MC. I tried jwulf's patch to call ScriptEngineManager with a null arg.
I'm trying to build my own scriptcraft.jar. I'm currently stuck on ant gen-events-helper-bukkit which logs Cannot invoke "javax.script.ScriptEngine.put(String, Object)" because "<local2>" is null
Activity
nanocodex commentedon Jan 23, 2020
I use Spigot 1.15.1 and that message doesn't appear for me.
nanocodex commentedon Jan 23, 2020
Maybe this will help?
nanocodex commentedon Jan 23, 2020
Or maybe your Java version is outdated? You can type
java -versionat the command prompt to check the version of Java that you're using.nanocodex commentedon Jan 25, 2020
Unfortunately, Github says that the file is over 10MB. So here's a link to download Buildtools instead (Buildtools will help prevent the spigot server from crashing, along with installing the server) :
https://www.spigotmc.org/wiki/buildtools/
The instructions to create a 1.15.1 spigot server will be in the description of the website as well.
nanocodex commentedon Jan 25, 2020
Nevermind, turns out that I was using an outdated build of version 1.15.1, so I think it's the server that's broken.
Cass-dev-web commentedon Jan 26, 2020
@hb432 Dude, switch to CRAFTBUKKIT. It now works for me!
jwmiii commentedon Jan 26, 2020
I'm new to ScriptCraft and the mc server. I was just trying to set this up and get it running. I had installed the Java JRE and I got this error. When I installed the Java JDK this error went away and scriptcraft seems to be working.
[-]ScriptCraft broken in 1.15.1?[/-][+]ScriptCraft - Potentially Incompatible with Minecraft 1.15.2 + JRE[/+][-]ScriptCraft - Potentially Incompatible with Minecraft 1.15.2 + JRE[/-][+]ScriptCraft - Potential Compatibility Issue with Minecraft 1.15.2 + JRE[/+]jwulf commentedon Jan 26, 2020
I am using build #71 of papermc. I'm using my own plugin written in Kotlin to do the loading, but it failed on the 1.15.2 build. I got it to work on JDK 8 by doing this:
Passing
nullto the ScriptManager fixed it. I got that from here: https://stackoverflow.com/a/25332851/1758461Pass in null classloader to work with 1.15.2
jwulf commentedon Jan 27, 2020
I'm now running on oracle/graalvm-ce:19.3.1-java8 and it's working for me.
TonyGravagno commentedon Jan 27, 2020
The topic of Nashorn with JDK8 has been discussed in the Google Group. Graal might be the way to go at some point. @jwulf it would be nice to share notes with you about what you did there. I can add it into docs. Note from the linked forum post that Jonathan Perret provided some notes for anyone who is interested.
While Paper is a fork of Spigot (responding to "Dude, switch to CRAFTBUKKIT") to my knowledge ScriptCraft has never actually been tested with Paper enough to claim "support". So for anyone using Paper, please write up something (in a dedicated ticket which might lead to published documentation) about how and why.
About "ScriptCraft now requires the JDK (Java SE 13.0.2) to run as of Minecraft 1.15.2." - I don't think that's accurate. I just loaded 1.15.2 with 1.9 yesterday, haven't tested with SCJS yet. I hope we can get some concensus on details here.
jwulf commentedon Jan 28, 2020
Magikcraft uses Scriptcraft with Paper 1.15.2 and GraalVM. Here is a working Docker image: https://hub.docker.com/r/magikcraft/scriptcraft. I've been running in production for years with it.
Mind you, with 1.15.2 Drones don't work - CraftEvil has been removed.
jrennie commentedon Jan 8, 2022
I first tried using ScriptCraft (3.4.0 jar) with Paper ("no javascript engine available"). Then I tried spigot but go the same error. I'm using java 17 and a recent build of MC. I tried jwulf's patch to call ScriptEngineManager with a null arg.
I'm trying to build my own scriptcraft.jar. I'm currently stuck on
ant gen-events-helper-bukkitwhich logsCannot invoke "javax.script.ScriptEngine.put(String, Object)" because "<local2>" is null