ScriptCraft - Potential Compatibility Issue with Minecraft 1.15.2 + JRE · Issue #423 · walterhiggins/ScriptCraft · GitHub
Skip to content

ScriptCraft - Potential Compatibility Issue with Minecraft 1.15.2 + JRE #423

Closed

Description

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"

Activity

  1. nanocodex commented on Jan 23, 2020

    @nanocodex

    I use Spigot 1.15.1 and that message doesn't appear for me.

  2. nanocodex commented on Jan 23, 2020

    @nanocodex

    Maybe this will help?

  3. nanocodex commented on Jan 23, 2020

    @nanocodex

    Or maybe your Java version is outdated? You can type java -version at the command prompt to check the version of Java that you're using.

  4. nanocodex commented on Jan 25, 2020

    @nanocodex

    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.

  5. nanocodex commented on Jan 25, 2020

    @nanocodex

    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.

  6. Cass-dev-web commented on Jan 26, 2020

    @Cass-dev-web

    @hb432 Dude, switch to CRAFTBUKKIT. It now works for me!

  7. jwmiii commented on Jan 26, 2020

    @jwmiii

    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.

  8. ghost changed the title [-]ScriptCraft broken in 1.15.1?[/-] [+]ScriptCraft - Potentially Incompatible with Minecraft 1.15.2 + JRE[/+] on Jan 26, 2020
  9. 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
  10. ghost closed this as completedon Jan 26, 2020
  11. jwulf commented on Jan 26, 2020

    @jwulf
    Contributor

    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")
    

    Passing null to the ScriptManager fixed it. I got that from here: https://stackoverflow.com/a/25332851/1758461

  12. added a commit that references this issue on Jan 27, 2020
    5650c49
  13. jwulf commented on Jan 27, 2020

    @jwulf
    Contributor

    I'm now running on oracle/graalvm-ce:19.3.1-java8 and it's working for me.

  14. TonyGravagno commented on Jan 27, 2020

    @TonyGravagno
    Collaborator

    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.

  15. jwulf commented on Jan 28, 2020

    @jwulf
    Contributor

    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.

  16. jrennie commented on Jan 8, 2022

    @jrennie

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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