Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cdokolas opened this issue Nov 16, 2021 · 0 comments

Comments

@cdokolas
Copy link

cdokolas commented Nov 16, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant