Skip to content

Loading build file with javascript task fails with "Unable to create javax script engine for javascript" #38

@cdokolas

Description

@cdokolas

Opening a build file that includes a javascript task (using <scriptdef>), fails with "Unable to create javax script engine for javascript".

Sample output (from error dialog details):

Cannot open graph
Cannot open project file C:\source\trunk\src\build\build.xml
  Cannot open project file C:\source\trunk\src\build\build.xml
  Cannot open project file C:\source\trunk\src\build\build.xml
  The following error occurred while executing this line:
C:\source\trunk\src\build\build-common\build-common.xml:62: Unable to create javax script engine for javascript
  The following error occurred while executing this line:
C:\source\trunk\src\build\build-common\build-common.xml:62: Unable to create javax script engine for javascript
  Unable to create javax script engine for javascript
  Unable to create javax script engine for javascript

I tried with Java 17 (OpenJDK 64-Bit Server VM Temurin-17+35 (build 17+35, mixed mode, sharing)) and Java 1.8 (OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.282-b08, mixed mode))

Also note that the javascript task definition and the first execution is in an "included" ant file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions