Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix "Unable to create javax script engine for javascript" in netbeans?

Im trying to do a project using Javafx and Netbeans IDE and I can not run my project because this message below "Unable to create javax script engine for javascript". Please can someone tell me how can I fix this please.. Below you can see what the link can open in my IDE . Please help

enter image description here

like image 489
James James Avatar asked Jan 27 '26 08:01

James James


1 Answers

  1. Download nashorn and some dependencies. You can find these e.g. via https://mvnrepository.com/. Use the maven dependencies to get matching versions. e.g.
   org.openjdk.nashorn:nashorn-core:15.4
   org.ow2.asm:asm:7.3.1
   org.ow2.asm:asm-commons:7.3.1
   org.ow2.asm:asm-analysis:7.3.1
   org.ow2.asm:asm-tree:7.3.1
   org.ow2.asm:asm-util:7.3.1
  1. In Netbeans go to Tools -> Options -> Java -> Ant and add the downloaded jar files to the classpath.

That's it.

like image 123
bebbo Avatar answered Jan 28 '26 21:01

bebbo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!