No JavaScript Engine available. ScriptCraft will not work without Javascript. · Issue #452 · walterhiggins/ScriptCraft · GitHub
Skip to content

No JavaScript Engine available. ScriptCraft will not work without Javascript. #452

Open

Description

@DanielGlzp

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.

Activity

  1. MrDoomBringer commented on Nov 30, 2020

    @MrDoomBringer

    This is likely because your java version is greater than java 8.
    You can check this by typing "java -version" into a command prompt.
    Java versions greater than 8 will get this error because they don't come with javascript pre-installed anymore.

    Personally, I have 2 JDKs installed, one for scriptcraft and one for everything else.
    image
    Whenever I want to run my scriptcraft server at the command prompt, I specify the right version of java by running this command:
    image
    in a powershell terminal. Note that I'm using the ` key to escape the space character in "Program Files".

  2. quartze commented on Dec 1, 2020

    @quartze

    This is likely because your java version is greater than java 8.
    You can check this by typing "java -version" into a command prompt.
    Java versions greater than 8 will get this error because they don't come with javascript pre-installed anymore.

    Personally, I have 2 JDKs installed, one for scriptcraft and one for everything else.
    image
    Whenever I want to run my scriptcraft server at the command prompt, I specify the right version of java by running this command:
    image
    in a powershell terminal. Note that I'm using the ` key to escape the space character in "Program Files".

    It's not working for me.
    Still have the same error like author. "No JavaScript Engine available".
    Using jdk1.8.0_271.
    Note: you can write Progra~1 or Progra~2 than Program` FIles.

  3. MrDoomBringer commented on Dec 1, 2020

    @MrDoomBringer

    @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?
    In that case, I would try uninstalling and reinstalling java? Not certain what your issue might be if it still persists.

  4. MrDoomBringer commented on Dec 25, 2020

    @MrDoomBringer

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

  5. MangoSwirl commented on Jan 7, 2021

    @MangoSwirl

    5650c49
    that commit fixed it. you need to compile it yourself. I would do it for you but it's good practice not to use a version a random person (me) from the internet compiled cuz there is no way you can trust me to not put malware in it

    I'm having the same issue. How could I compile this myself?

  6. jwulf commented on Jan 8, 2021

    @jwulf
    Contributor

    There is a build in the zip file release here: https://github.com/Magikcraft/MagikCraft/releases

  7. spustlik commented on Jun 20, 2021

    @spustlik

    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 have no idea how to solve it

    • either how to build spigot only to use java 11 (latest version with Nashorn)
    • or how build scriptcraft with another javasript implementation (GrallVM?)
  8. ediloren commented on Aug 27, 2021

    @ediloren

    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'.

  9. willmil11 commented on Jun 26, 2023

    @willmil11

    Everyone youll not regret it to fix that use java 8.0.302-open you can install with sdkman

  10. joaoalbertocsjunior commented on Jul 31, 2023

    @joaoalbertocsjunior

    Reinstall spigot server with command:
    java -jar -Xmx1G -Djdk.net.URLClassPath.disableClassPathURLCheck=true BuildTools.jar --rev 1.16.5

    openjdk-8-jdk needed

  11. FreshImmuc commented on Oct 6, 2024

    @FreshImmuc

    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?

  12. ediloren commented on Oct 8, 2024

    @ediloren

    @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.

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