Menu

#1936 build-support.xml doesn't work with modern JDKs

None
open
nobody
None
5
2025-02-28
2025-02-25
Alan Ezust
No

Currently, I must use Java < 15 to build plugins.
It would be nice if more modern JDKs were supported by our build.xml scripts.

Java 15 has removed Nashorn, you must provide an engine for running JavaScript yourself. GraalVM JavaScript currently is the preferred option.

BUILD FAILED
/home/ezust/workspace/jedit/plugins/FTP/build.xml:30: The following error occurred while executing this line:
/home/ezust/workspace/jedit/build-support/plugin-build.xml:61: Unable to create javax script engine for javascript

Related

Plugin Bugs: #1936

Discussion

  • Eric Le Lay

    Eric Le Lay - 2025-02-26

    openjdk 15 also works, but it disappeared from ubuntu repos (tar.gz available via https://github.com/AdoptOpenJDK/openjdk15-binaries)

    It would be nice to bump the version dependency to Java 21 (latest LTS) or Java 17 (previous LTS).

    Regarding availability in major Linux distros:

    • both are available with RHEL 8 onwards
    • both are available on Ubuntu Focal Fossa (20.04) onwards
    • 21 is not available on Debian stable
    • both are available as community packages on SEL
    Version Oracle support Red Hat Support
    21 September 2028 December 31, 2029
    17 September 2026 October 31, 2027

    Ref:

     
  • Alan Ezust

    Alan Ezust - 2025-02-26
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,2 +1,9 @@
     Currently, I must use Java 11 to build jEdit or Plugins. 
     It would be nice if more modern JDKs were supported by our build.xml scripts. 
    +
    +Java 15 has removed Nashorn, you must provide an engine for running JavaScript yourself. GraalVM JavaScript currently is the preferred option.
    +
    +BUILD FAILED
    +/home/ezust/workspace/jedit/plugins/FTP/build.xml:30: The following error occurred while executing this line:
    +/home/ezust/workspace/jedit/build-support/plugin-build.xml:61: Unable to create javax script engine for javascript
    +
    
    • Group: -->
     
  • Alan Ezust

    Alan Ezust - 2025-02-28
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,4 @@
    -Currently, I must use Java 11 to build jEdit or Plugins. 
    +Currently, I must use Java &lt; 15 to build plugins. 
     It would be nice if more modern JDKs were supported by our build.xml scripts. 
    
     Java 15 has removed Nashorn, you must provide an engine for running JavaScript yourself. GraalVM JavaScript currently is the preferred option.
    
     

Log in to post a comment.

MongoDB Logo MongoDB