javascript - Mozilla Rhino - Error finding the class while using importClass(...) -


i trying following code:-

demo.js

importclass(packages.java.lang.system); importclass(packages.java.util.arraylist); importclass(packages.org.demo.check);  function disp(){ system.out.println("========== welcome rhino demo ===========" ); var c = new check(); c.check(); } 

now org.demo.check class class file present on classpath (i have verified using same class in separate java program , works fine)

when run shell gives me following error:

enter image description here

any idea issue?


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -