due to Nashorn being discontinued we are currently trying to change our (still Java 8) application (very big monolith) from Nashorn to GraalVM. Due to the application being used as library in multiple projects, instead of using the whole GraalVM runtime we decided to just adding the necessary jars to the class path (which seem to work so far). To
Tag: nashorn
javascript execution failing in java with XPathResult undefined
I’m trying to execute the javascript function with java, and I’m getting an error message that it is not able to find some of the classes. can someone please help me to clear this issue? My Java class Exception please let me know if data required from my side. Answer The problem with your code is, you are using XPathResult