admin管理员组文章数量:1356371
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)
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)
Share Improve this question asked Apr 6, 2021 at 6:07 Mustafa IramMustafa Iram 411 gold badge1 silver badge2 bronze badges2 Answers
Reset to default 2The Nashorn JavaScript Engine has been removed in Java 15: https://openjdk.java/jeps/372
The javascript engine used to be included in the JVM but it has been removed in Java 15.
As an alternative you can use Groovy instead. Groovy looks similar to javascript. Your javascript should be easy to port to Groovy.
When you use the 'groovy-all jar', the script tag looks something like:
<taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="path/to/groovy-all-2.4.21.jar" />
<groovy>
// your Groovy script
</groovy>
本文标签: Unable to create javax script engine for javascript in Javafx applicationStack Overflow
版权声明:本文标题:Unable to create javax script engine for javascript in Javafx application - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744044888a2581343.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论