Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to create javax script engine for javascript in Javafx application

I am using NetBeans 12.0. and windows 10 64 bit.My JDK is 15.0.2 and JavaFx SDK 16. When I try to build my javafx application it shows the following build error:

C:\Users\musta\OneDrive\Documents\NetBeansProjects\JavafxTry\nbproject\jfx-impl.xml:1251: The following error occurred while executing this line: C:\Users\musta\OneDrive\Documents\NetBeansProjects\JavafxTry\nbproject\jfx-impl.xml:1259: Unable to create javax script engine for javascript

BUILD FAILED (total time: 3 seconds)

like image 688
Mustafa Iram Avatar asked Oct 26 '25 12:10

Mustafa Iram


1 Answers

The Nashorn JavaScript Engine has been removed in Java 15: https://openjdk.java.net/jeps/372